Package net.minecraft.core
Interface WritableRegistry<T>
- All Known Implementing Classes:
DefaultedMappedRegistry,MappedRegistry,NamespacedDefaultedWrapper,NamespacedWrapper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()register(ResourceKey<T> p_256320_, T p_255978_, com.mojang.serialization.Lifecycle p_256625_) registerMapping(int p_206368_, ResourceKey<T> p_206369_, T p_206370_, com.mojang.serialization.Lifecycle p_206371_) Methods inherited from interface net.minecraft.core.IdMap
byId, byIdOrThrow, sizeMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface net.minecraft.core.Registry
asHolderIdMap, asLookup, asTagAddingLookup, bindTags, byNameCodec, containsKey, containsKey, createIntrusiveHolder, entrySet, freeze, get, get, getHolder, getHolder, getHolderOrThrow, getId, getKey, getOptional, getOptional, getOrCreateTag, getOrThrow, getRandom, getResourceKey, getTag, getTagNames, getTagOrEmpty, getTags, holderByNameCodec, holderOwner, holders, key, keys, keySet, lifecycle, registryKeySet, registryLifecycle, resetTags, stream, wrapAsHolder
-
Method Details
-
registerMapping
Holder<T> registerMapping(int p_206368_, ResourceKey<T> p_206369_, T p_206370_, com.mojang.serialization.Lifecycle p_206371_) -
register
Holder.Reference<T> register(ResourceKey<T> p_256320_, T p_255978_, com.mojang.serialization.Lifecycle p_256625_) -
isEmpty
boolean isEmpty() -
createRegistrationLookup
HolderGetter<T> createRegistrationLookup()
-