Class BootstrapRegistry<T>
java.lang.Object
net.minecraft.core.registries.BootstrapRegistry<T>
- All Implemented Interfaces:
HolderGetter<T>, HolderLookup<T>, HolderLookup.RegistryLookup<T>, HolderOwner<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate classprivate static interfaceNested classes/interfaces inherited from interface HolderLookup
HolderLookup.Provider, HolderLookup.RegistryLookup<T>Nested classes/interfaces inherited from interface HolderLookup.RegistryLookup
HolderLookup.RegistryLookup.Delegate<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<? extends Registry<T>> private final com.mojang.serialization.Lifecycleprivate BootstrapRegistry.Storage<T> -
Constructor Summary
ConstructorsConstructorDescriptionBootstrapRegistry(ResourceKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) -
Method Summary
Modifier and TypeMethodDescriptionvoidfreeze()get(ResourceKey<T> id) ResourceKey<? extends Registry<? extends T>> key()listTags()com.mojang.serialization.LifecyclevoidremoveIf(Predicate<Holder.Reference<T>> predicate) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HolderGetter
getOrThrow, getOrThrow, getRandomElementOfMethods inherited from interface HolderLookup
listElementIds, listTagIdsMethods inherited from interface HolderLookup.RegistryLookup
filterElements, filterFeatures, getData, getDataMapMethods inherited from interface HolderOwner
canSerialize
-
Field Details
-
key
-
lifecycle
private final com.mojang.serialization.Lifecycle lifecycle -
storage
-
-
Constructor Details
-
BootstrapRegistry
public BootstrapRegistry(ResourceKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle)
-
-
Method Details
-
key
- Specified by:
keyin interfaceHolderLookup.RegistryLookup<T>
-
registryLifecycle
public com.mojang.serialization.Lifecycle registryLifecycle()- Specified by:
registryLifecyclein interfaceHolderLookup.RegistryLookup<T>
-
freeze
public void freeze() -
removeIf
-
get
- Specified by:
getin interfaceHolderGetter<T>
-
listElements
- Specified by:
listElementsin interfaceHolderLookup<T>
-
get
- Specified by:
getin interfaceHolderGetter<T>
-
listTags
- Specified by:
listTagsin interfaceHolderLookup<T>
-