Interface WritableRegistry<T>
- All Superinterfaces:
HolderGetter<T>, HolderLookup<T>, HolderLookup.RegistryLookup<T>, HolderOwner<T>, IdMap<T>, IRegistryExtension<T>, Iterable<T>, com.mojang.serialization.Keyable, Registry<T>
- All Known Implementing Classes:
DefaultedMappedRegistry, MappedRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface HolderLookup
HolderLookup.Provider, HolderLookup.RegistryLookup<T>Nested classes/interfaces inherited from interface HolderLookup.RegistryLookup
HolderLookup.RegistryLookup.Delegate<T>Nested classes/interfaces inherited from interface Registry
Registry.PendingTags<T> -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisEmpty()register(ResourceKey<T> key, T value, RegistrationInfo registrationInfo) Methods inherited from interface HolderGetter
get, get, getOrThrow, getOrThrow, getRandomElementOfMethods inherited from interface HolderLookup
listElementIds, listElements, listTagIds, listTagsMethods inherited from interface HolderLookup.RegistryLookup
filterElements, filterFeatures, getData, registryLifecycleMethods inherited from interface HolderOwner
canSerializeInMethods inherited from interface IdMap
byId, byIdOrThrow, getIdOrThrow, sizeMethods inherited from interface IRegistryExtension
addAlias, addCallback, addCallback, containsValue, doesSync, getDataMap, getId, getId, getKeyOrNull, getMaxId, resolve, resolveMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface Registry
asHolderIdMap, byNameCodec, componentLookup, containsKey, containsKey, createIntrusiveHolder, entrySet, freeze, get, get, getAny, getId, getKey, getOptional, getOptional, getRandom, getResourceKey, getTagOrEmpty, getTags, getValue, getValue, getValueOrThrow, holderByNameCodec, key, keys, keySet, prepareTagReload, registrationInfo, registryKeySet, stream, wrapAsHolder
-
Method Details
-
register
-
bindTags
-
isEmpty
boolean isEmpty() -
createRegistrationLookup
HolderGetter<T> createRegistrationLookup()
-