Class DelayedRegistry<T>
java.lang.Object
org.quiltmc.qsl.frozenblock.core.registry.impl.event.DelayedRegistry<T>
- All Implemented Interfaces:
com.mojang.serialization.Keyable,Iterable<T>,net.minecraft.core.HolderGetter<T>,net.minecraft.core.HolderLookup<T>,net.minecraft.core.HolderLookup.RegistryLookup<T>,net.minecraft.core.HolderOwner<T>,net.minecraft.core.IdMap<T>,net.minecraft.core.Registry<T>,net.minecraft.core.WritableRegistry<T>
@Internal
public final class DelayedRegistry<T>
extends Object
implements net.minecraft.core.WritableRegistry<T>
Modified to work on Fabric
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.HolderLookup
net.minecraft.core.HolderLookup.Provider, net.minecraft.core.HolderLookup.RegistryLookup<T>Nested classes/interfaces inherited from interface net.minecraft.core.HolderLookup.RegistryLookup
net.minecraft.core.HolderLookup.RegistryLookup.Delegate<T>Nested classes/interfaces inherited from interface net.minecraft.core.Registry
net.minecraft.core.Registry.PendingTags<T> -
Field Summary
Fields inherited from interface net.minecraft.core.IdMap
DEFAULT -
Method Summary
Modifier and TypeMethodDescriptionvoidbyId(int index) booleancontainsKey(net.minecraft.resources.ResourceKey<T> key) booleancontainsKey(net.minecraft.resources.ResourceLocation id) @NotNull net.minecraft.core.Holder.Reference<T> createIntrusiveHolder(T holder) @NotNull net.minecraft.core.HolderGetter<T> entrySet()@NotNull net.minecraft.core.Registry<T> freeze()get(int index) get(@Nullable net.minecraft.resources.ResourceLocation id) getAny()int@Nullable net.minecraft.resources.ResourceLocationgetRandom(net.minecraft.util.RandomSource random) getResourceKey(T entry) getTags()getValue(@Nullable net.minecraft.resources.ResourceLocation resourceLocation) booleanisEmpty()iterator()@NotNull net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key()@NotNull Set<net.minecraft.resources.ResourceLocation> keySet()listTags()@NotNull net.minecraft.core.Registry.PendingTags<T> prepareTagReload(net.minecraft.tags.TagLoader.LoadResult<T> loadResult) @NotNull net.minecraft.core.Holder.Reference<T> register(net.minecraft.resources.ResourceKey<T> key, T entry, net.minecraft.core.RegistrationInfo registrationInfo) @NotNull Optional<net.minecraft.core.RegistrationInfo> registrationInfo(net.minecraft.resources.ResourceKey<T> key) @NotNull com.mojang.serialization.Lifecycleintsize()@NotNull net.minecraft.core.Holder<T> wrapAsHolder(T object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.core.HolderGetter
getOrThrow, getOrThrowMethods inherited from interface net.minecraft.core.HolderLookup
listElementIds, listTagIdsMethods inherited from interface net.minecraft.core.HolderLookup.RegistryLookup
filterElements, filterFeaturesMethods inherited from interface net.minecraft.core.HolderOwner
canSerializeInMethods inherited from interface net.minecraft.core.IdMap
byIdOrThrow, getIdOrThrowMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.core.Registry
asHolderIdMap, byNameCodec, getOptional, getOptional, getRandomElementOf, getTagOrEmpty, getValueOrThrow, holderByNameCodec, keys, stream
-
Method Details
-
getKey
- Specified by:
getKeyin interfacenet.minecraft.core.Registry<T>
-
getResourceKey
- Specified by:
getResourceKeyin interfacenet.minecraft.core.Registry<T>
-
getId
-
getValue
- Specified by:
getValuein interfacenet.minecraft.core.Registry<T>
-
getValue
@Nullable public T getValue(@Nullable @Nullable net.minecraft.resources.ResourceLocation resourceLocation) - Specified by:
getValuein interfacenet.minecraft.core.Registry<T>
-
get
@NotNull public @NotNull Optional<net.minecraft.core.Holder.Reference<T>> get(@Nullable @Nullable net.minecraft.resources.ResourceKey<T> entry) - Specified by:
getin interfacenet.minecraft.core.HolderGetter<T>
-
get
@NotNull public @NotNull Optional<net.minecraft.core.Holder.Reference<T>> get(@Nullable @Nullable net.minecraft.resources.ResourceLocation id) - Specified by:
getin interfacenet.minecraft.core.Registry<T>
-
registrationInfo
@NotNull public @NotNull Optional<net.minecraft.core.RegistrationInfo> registrationInfo(net.minecraft.resources.ResourceKey<T> key) - Specified by:
registrationInfoin interfacenet.minecraft.core.Registry<T>
-
registryLifecycle
@NotNull public @NotNull com.mojang.serialization.Lifecycle registryLifecycle()- Specified by:
registryLifecyclein interfacenet.minecraft.core.HolderLookup.RegistryLookup<T>
-
getAny
- Specified by:
getAnyin interfacenet.minecraft.core.Registry<T>
-
keySet
- Specified by:
keySetin interfacenet.minecraft.core.Registry<T>
-
entrySet
- Specified by:
entrySetin interfacenet.minecraft.core.Registry<T>
-
registryKeySet
- Specified by:
registryKeySetin interfacenet.minecraft.core.Registry<T>
-
getRandom
@NotNull public @NotNull Optional<net.minecraft.core.Holder.Reference<T>> getRandom(net.minecraft.util.RandomSource random) - Specified by:
getRandomin interfacenet.minecraft.core.Registry<T>
-
containsKey
public boolean containsKey(net.minecraft.resources.ResourceLocation id) - Specified by:
containsKeyin interfacenet.minecraft.core.Registry<T>
-
containsKey
- Specified by:
containsKeyin interfacenet.minecraft.core.Registry<T>
-
freeze
- Specified by:
freezein interfacenet.minecraft.core.Registry<T>
-
createIntrusiveHolder
- Specified by:
createIntrusiveHolderin interfacenet.minecraft.core.Registry<T>
-
get
- Specified by:
getin interfacenet.minecraft.core.Registry<T>
-
wrapAsHolder
- Specified by:
wrapAsHolderin interfacenet.minecraft.core.Registry<T>
-
listElements
- Specified by:
listElementsin interfacenet.minecraft.core.HolderLookup<T>
-
listTags
- Specified by:
listTagsin interfacenet.minecraft.core.HolderLookup<T>
-
get
@NotNull public @NotNull Optional<net.minecraft.core.HolderSet.Named<T>> get(net.minecraft.tags.TagKey<T> tag) - Specified by:
getin interfacenet.minecraft.core.HolderGetter<T>
-
getTags
- Specified by:
getTagsin interfacenet.minecraft.core.Registry<T>
-
prepareTagReload
@NotNull public @NotNull net.minecraft.core.Registry.PendingTags<T> prepareTagReload(net.minecraft.tags.TagLoader.LoadResult<T> loadResult) - Specified by:
prepareTagReloadin interfacenet.minecraft.core.Registry<T>
-
iterator
-
byId
- Specified by:
byIdin interfacenet.minecraft.core.IdMap<T>
-
key
@NotNull public @NotNull net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key() -
size
public int size()- Specified by:
sizein interfacenet.minecraft.core.IdMap<T>
-
register
@NotNull public @NotNull net.minecraft.core.Holder.Reference<T> register(net.minecraft.resources.ResourceKey<T> key, T entry, net.minecraft.core.RegistrationInfo registrationInfo) - Specified by:
registerin interfacenet.minecraft.core.WritableRegistry<T>
-
bindTag
- Specified by:
bindTagin interfacenet.minecraft.core.WritableRegistry<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacenet.minecraft.core.WritableRegistry<T>
-
createRegistrationLookup
- Specified by:
createRegistrationLookupin interfacenet.minecraft.core.WritableRegistry<T>
-