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.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
-
Field Summary
Fields inherited from interface net.minecraft.core.IdMap
DEFAULT -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.core.HolderLookup.RegistryLookup<T>asLookup()voidbyId(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(@Nullable net.minecraft.resources.ResourceLocation id) getHolder(int index) int@Nullable net.minecraft.resources.ResourceLocation@NotNull net.minecraft.core.HolderSet.Named<T>getOrCreateTag(net.minecraft.tags.TagKey<T> key) getRandom(net.minecraft.util.RandomSource random) getResourceKey(T entry) @NotNull Stream<com.mojang.datafixers.util.Pair<net.minecraft.tags.TagKey<T>,net.minecraft.core.HolderSet.Named<T>>> getTags()@NotNull net.minecraft.core.HolderOwner<T>holders()booleanisEmpty()iterator()@NotNull net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>>key()@NotNull Set<net.minecraft.resources.ResourceLocation>keySet()@NotNull com.mojang.serialization.Lifecycle@NotNull net.minecraft.core.Holder.Reference<T>register(net.minecraft.resources.ResourceKey<T> key, T entry, com.mojang.serialization.Lifecycle lifecycle) @NotNull net.minecraft.core.Holder<T>registerMapping(int rawId, net.minecraft.resources.ResourceKey<T> key, T entry, com.mojang.serialization.Lifecycle lifecycle) @NotNull com.mojang.serialization.Lifecyclevoidintsize()@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.IdMap
byIdOrThrowMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.core.Registry
asHolderIdMap, asTagAddingLookup, byNameCodec, getHolderOrThrow, getOptional, getOptional, getOrThrow, getTagOrEmpty, holderByNameCodec, keys, stream
-
Method Details
-
getKey
- Specified by:
getKeyin interfacenet.minecraft.core.Registry<T>
-
getResourceKey
- Specified by:
getResourceKeyin interfacenet.minecraft.core.Registry<T>
-
getId
-
get
- Specified by:
getin interfacenet.minecraft.core.Registry<T>
-
get
- Specified by:
getin interfacenet.minecraft.core.Registry<T>
-
lifecycle
- Specified by:
lifecyclein interfacenet.minecraft.core.Registry<T>
-
registryLifecycle
@NotNull public @NotNull com.mojang.serialization.Lifecycle registryLifecycle()- Specified by:
registryLifecyclein 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>
-
getHolder
- Specified by:
getHolderin interfacenet.minecraft.core.Registry<T>
-
getHolder
@NotNull public @NotNull Optional<net.minecraft.core.Holder.Reference<T>> getHolder(net.minecraft.resources.ResourceKey<T> key) - Specified by:
getHolderin interfacenet.minecraft.core.Registry<T>
-
wrapAsHolder
- Specified by:
wrapAsHolderin interfacenet.minecraft.core.Registry<T>
-
holders
- Specified by:
holdersin interfacenet.minecraft.core.Registry<T>
-
getTag
@NotNull public @NotNull Optional<net.minecraft.core.HolderSet.Named<T>> getTag(net.minecraft.tags.TagKey<T> tag) - Specified by:
getTagin interfacenet.minecraft.core.Registry<T>
-
getOrCreateTag
@NotNull public @NotNull net.minecraft.core.HolderSet.Named<T> getOrCreateTag(net.minecraft.tags.TagKey<T> key) - Specified by:
getOrCreateTagin interfacenet.minecraft.core.Registry<T>
-
getTags
@NotNull public @NotNull Stream<com.mojang.datafixers.util.Pair<net.minecraft.tags.TagKey<T>,net.minecraft.core.HolderSet.Named<T>>> getTags()- Specified by:
getTagsin interfacenet.minecraft.core.Registry<T>
-
getTagNames
- Specified by:
getTagNamesin interfacenet.minecraft.core.Registry<T>
-
resetTags
public void resetTags()- Specified by:
resetTagsin interfacenet.minecraft.core.Registry<T>
-
bindTags
- Specified by:
bindTagsin interfacenet.minecraft.core.Registry<T>
-
holderOwner
- Specified by:
holderOwnerin interfacenet.minecraft.core.Registry<T>
-
asLookup
- Specified by:
asLookupin 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()- Specified by:
keyin interfacenet.minecraft.core.Registry<T>
-
size
public int size()- Specified by:
sizein interfacenet.minecraft.core.IdMap<T>
-
registerMapping
@NotNull public @NotNull net.minecraft.core.Holder<T> registerMapping(int rawId, net.minecraft.resources.ResourceKey<T> key, T entry, com.mojang.serialization.Lifecycle lifecycle) - Specified by:
registerMappingin interfacenet.minecraft.core.WritableRegistry<T>
-
register
@NotNull public @NotNull net.minecraft.core.Holder.Reference<T> register(net.minecraft.resources.ResourceKey<T> key, T entry, com.mojang.serialization.Lifecycle lifecycle) - Specified by:
registerin 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>
-