Package net.minecraft.core
Class DefaultedMappedRegistry<T>
java.lang.Object
net.neoforged.neoforge.registries.BaseMappedRegistry<T>
net.minecraft.core.MappedRegistry<T>
net.minecraft.core.DefaultedMappedRegistry<T>
- All Implemented Interfaces:
- com.mojang.serialization.Keyable,- Iterable<T>,- DefaultedRegistry<T>,- IdMap<T>,- Registry<T>,- WritableRegistry<T>,- IRegistryExtension<T>
- 
Field SummaryFieldsFields inherited from class net.minecraft.core.MappedRegistrykey, unregisteredIntrusiveHoldersFields inherited from class net.neoforged.neoforge.registries.BaseMappedRegistryaddCallbacks, bakeCallbacks, clearCallbacks
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultedMappedRegistry(String p_260196_, ResourceKey<? extends Registry<T>> p_259440_, com.mojang.serialization.Lifecycle p_260260_, boolean p_259808_) 
- 
Method SummaryModifier and TypeMethodDescriptionbyId(int p_259534_) get(ResourceLocation p_260004_) intgetOptional(ResourceLocation p_260078_) getRandom(RandomSource p_260255_) registerMapping(int p_259787_, ResourceKey<T> p_259677_, T p_259430_, com.mojang.serialization.Lifecycle p_259516_) Methods inherited from class net.minecraft.core.MappedRegistryasLookup, bindTags, clear, containsKey, containsKey, containsValue, createIntrusiveHolder, createRegistrationLookup, entrySet, freeze, get, getHolder, getHolder, getId, getId, getOrCreateHolderOrThrow, getOrCreateTag, getResourceKey, getTag, getTagNames, getTags, holderOwner, holders, isEmpty, iterator, key, keySet, lifecycle, register, registerIdMapping, registryKeySet, registryLifecycle, resetTags, size, toString, unfreeze, wrapAsHolderMethods inherited from class net.neoforged.neoforge.registries.BaseMappedRegistryaddAlias, addCallback, doesSync, getData, getDataMap, getMaxId, resolve, resolveMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.core.IdMapbyIdOrThrow, sizeMethods inherited from interface net.neoforged.neoforge.registries.IRegistryExtensionaddAlias, addCallback, addCallback, containsValue, doesSync, getData, getDataMap, getId, getId, getMaxId, resolve, resolveMethods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface net.minecraft.core.RegistryasHolderIdMap, asLookup, asTagAddingLookup, bindTags, byNameCodec, containsKey, containsKey, createIntrusiveHolder, entrySet, freeze, get, getHolder, getHolder, getHolderOrThrow, getOptional, getOrCreateTag, getOrThrow, getResourceKey, getTag, getTagNames, getTagOrEmpty, getTags, holderByNameCodec, holderOwner, holders, key, keys, keySet, lifecycle, registryKeySet, registryLifecycle, resetTags, stream, wrapAsHolder
- 
Field Details- 
defaultKey
- 
defaultValue
 
- 
- 
Constructor Details- 
DefaultedMappedRegistrypublic DefaultedMappedRegistry(String p_260196_, ResourceKey<? extends Registry<T>> p_259440_, com.mojang.serialization.Lifecycle p_260260_, boolean p_259808_) 
 
- 
- 
Method Details- 
registerMappingpublic Holder.Reference<T> registerMapping(int p_259787_, ResourceKey<T> p_259677_, T p_259430_, com.mojang.serialization.Lifecycle p_259516_) - Overrides:
- registerMappingin class- MappedRegistry<T>
 
- 
getId
- 
getKey- Specified by:
- getKeyin interface- DefaultedRegistry<T>
- Specified by:
- getKeyin interface- Registry<T>
- Overrides:
- getKeyin class- MappedRegistry<T>
 
- 
get- Specified by:
- getin interface- DefaultedRegistry<T>
- Specified by:
- getin interface- Registry<T>
- Overrides:
- getin class- MappedRegistry<T>
 
- 
getOptional- Specified by:
- getOptionalin interface- Registry<T>
 
- 
byId- Specified by:
- byIdin interface- DefaultedRegistry<T>
- Specified by:
- byIdin interface- IdMap<T>
- Overrides:
- byIdin class- MappedRegistry<T>
 
- 
getRandom
- 
getDefaultKey- Specified by:
- getDefaultKeyin interface- DefaultedRegistry<T>
 
 
-