类 DefaultedMappedRegistry<T>
java.lang.Object
net.minecraft.core.MappedRegistry<T>
net.minecraft.core.DefaultedMappedRegistry<T>
- 所有已实现的接口:
com.mojang.serialization.Keyable
,Iterable<T>
,DefaultedRegistry<T>
,IdMap<T>
,Registry<T>
,WritableRegistry<T>
-
字段概要
字段从类继承的字段 net.minecraft.core.MappedRegistry
key, unregisteredIntrusiveHolders
-
构造器概要
构造器构造器说明DefaultedMappedRegistry
(String pDefaultKey, ResourceKey<? extends Registry<T>> pKey, com.mojang.serialization.Lifecycle pRegistryLifecycle, boolean pHasIntrusiveHolders) -
方法概要
修饰符和类型方法说明byId
(int pId) get
(ResourceLocation pName) int
getOptional
(ResourceLocation pName) getRandom
(RandomSource pRandom) registerMapping
(int pId, ResourceKey<T> pKey, T pValue, com.mojang.serialization.Lifecycle pLifecycle) 从类继承的方法 net.minecraft.core.MappedRegistry
asLookup, bindTags, containsKey, containsKey, createIntrusiveHolder, createRegistrationLookup, entrySet, freeze, get, getHolder, getHolder, getKnownRegistries, getOrCreateHolderOrThrow, getOrCreateTag, getResourceKey, getTag, getTagNames, getTags, holderOwner, holders, isEmpty, iterator, key, keySet, lifecycle, markKnown, register, registryKeySet, registryLifecycle, resetTags, size, toString, unfreeze, wrapAsHolder
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.core.IdMap
byIdOrThrow, size
从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
从接口继承的方法 net.minecraft.core.Registry
asHolderIdMap, 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
-
字段详细资料
-
defaultKey
-
defaultValue
-
-
构造器详细资料
-
DefaultedMappedRegistry
public DefaultedMappedRegistry(String pDefaultKey, ResourceKey<? extends Registry<T>> pKey, com.mojang.serialization.Lifecycle pRegistryLifecycle, boolean pHasIntrusiveHolders)
-
-
方法详细资料
-
registerMapping
public Holder.Reference<T> registerMapping(int pId, ResourceKey<T> pKey, T pValue, com.mojang.serialization.Lifecycle pLifecycle) - 指定者:
registerMapping
在接口中WritableRegistry<T>
- 覆盖:
registerMapping
在类中MappedRegistry<T>
-
getId
-
getKey
- 指定者:
getKey
在接口中DefaultedRegistry<T>
- 指定者:
getKey
在接口中Registry<T>
- 覆盖:
getKey
在类中MappedRegistry<T>
-
get
- 指定者:
get
在接口中DefaultedRegistry<T>
- 指定者:
get
在接口中Registry<T>
- 覆盖:
get
在类中MappedRegistry<T>
-
getOptional
- 指定者:
getOptional
在接口中Registry<T>
-
byId
- 指定者:
byId
在接口中DefaultedRegistry<T>
- 指定者:
byId
在接口中IdMap<T>
- 覆盖:
byId
在类中MappedRegistry<T>
-
getRandom
-
getDefaultKey
- 指定者:
getDefaultKey
在接口中DefaultedRegistry<T>
-