Package net.minecraft.core
Interface WritableRegistry<T>
- All Known Implementing Classes:
DefaultedMappedRegistry
,MappedRegistry
,NamespacedDefaultedWrapper
,NamespacedWrapper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEmpty()
register
(ResourceKey<T> p_256320_, T p_255978_, com.mojang.serialization.Lifecycle p_256625_) Methods inherited from interface net.minecraft.core.IdMap
byId, byIdOrThrow, size
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods 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
-
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()
-