类 DefaultedMappedRegistry<T>
java.lang.Object
net.minecraft.core.MappedRegistry<T>
net.minecraft.core.DefaultedMappedRegistry<T>
- 所有已实现的接口:
com.mojang.serialization.Keyable
,Iterable<T>
,DefaultedRegistry<T>
,HolderGetter<T>
,HolderLookup<T>
,HolderLookup.RegistryLookup<T>
,HolderOwner<T>
,IdMap<T>
,Registry<T>
,WritableRegistry<T>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.core.MappedRegistry
MappedRegistry.TagSet<T>
从接口继承的嵌套类/接口 net.minecraft.core.HolderLookup
HolderLookup.Provider, HolderLookup.RegistryLookup<T>
从接口继承的嵌套类/接口 net.minecraft.core.HolderLookup.RegistryLookup
HolderLookup.RegistryLookup.Delegate<T>
从接口继承的嵌套类/接口 net.minecraft.core.Registry
Registry.PendingTags<T>
-
字段概要
字段从类继承的字段 net.minecraft.core.MappedRegistry
allTags, unregisteredIntrusiveHolders
-
构造器概要
构造器构造器说明DefaultedMappedRegistry
(String p_260196_, ResourceKey<? extends Registry<T>> p_259440_, com.mojang.serialization.Lifecycle p_260260_, boolean p_259808_) -
方法概要
修饰符和类型方法说明byId
(int p_259534_) getAny()
int
getOptional
(ResourceLocation p_260078_) getRandom
(RandomSource p_260255_) getValue
(ResourceLocation p_365640_) register
(ResourceKey<T> p_332872_, T p_328327_, RegistrationInfo p_331941_) 从类继承的方法 net.minecraft.core.MappedRegistry
bindAllTagsToEmpty, bindTag, containsKey, containsKey, createIntrusiveHolder, createRegistrationLookup, entrySet, freeze, get, get, get, get, getKnownRegistries, getOrCreateHolderOrThrow, getOrCreateTagForRegistration, getResourceKey, getTags, getValue, isEmpty, isIntrusive, iterator, key, keySet, listElements, listTags, markKnown, prepareTagReload, refreshTagsInHolders, registrationInfo, registryKeySet, registryLifecycle, size, toString, unfreeze, wrapAsHolder
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.core.HolderGetter
get, get, getOrThrow, getOrThrow
从接口继承的方法 net.minecraft.core.HolderLookup
listElementIds, listElements, listTagIds, listTags
从接口继承的方法 net.minecraft.core.HolderLookup.RegistryLookup
filterElements, filterFeatures, registryLifecycle
从接口继承的方法 net.minecraft.core.HolderOwner
canSerializeIn
从接口继承的方法 net.minecraft.core.IdMap
byIdOrThrow, getIdOrThrow, size
从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
从接口继承的方法 net.minecraft.core.Registry
asHolderIdMap, byNameCodec, containsKey, containsKey, createIntrusiveHolder, entrySet, freeze, get, get, getOptional, getRandomElementOf, getResourceKey, getTagOrEmpty, getTags, getValue, getValueOrThrow, holderByNameCodec, key, keys, keySet, prepareTagReload, registrationInfo, registryKeySet, stream, wrapAsHolder
-
字段详细资料
-
defaultKey
-
defaultValue
-
-
构造器详细资料
-
DefaultedMappedRegistry
public DefaultedMappedRegistry(String p_260196_, ResourceKey<? extends Registry<T>> p_259440_, com.mojang.serialization.Lifecycle p_260260_, boolean p_259808_)
-
-
方法详细资料
-
register
public Holder.Reference<T> register(ResourceKey<T> p_332872_, T p_328327_, RegistrationInfo p_331941_) - 指定者:
register
在接口中WritableRegistry<T>
- 覆盖:
register
在类中MappedRegistry<T>
-
getId
-
getKey
- 指定者:
getKey
在接口中DefaultedRegistry<T>
- 指定者:
getKey
在接口中Registry<T>
- 覆盖:
getKey
在类中MappedRegistry<T>
-
getValue
- 指定者:
getValue
在接口中DefaultedRegistry<T>
- 指定者:
getValue
在接口中Registry<T>
- 覆盖:
getValue
在类中MappedRegistry<T>
-
getOptional
- 指定者:
getOptional
在接口中Registry<T>
-
getAny
-
byId
- 指定者:
byId
在接口中DefaultedRegistry<T>
- 指定者:
byId
在接口中IdMap<T>
- 覆盖:
byId
在类中MappedRegistry<T>
-
getRandom
-
getDefaultKey
- 指定者:
getDefaultKey
在接口中DefaultedRegistry<T>
-