接口 HolderLookup.RegistryLookup<T>
- 所有超级接口:
HolderGetter<T>
,HolderLookup<T>
,HolderOwner<T>
- 所有已知子接口:
DefaultedRegistry<T>
,HolderLookup.RegistryLookup.Delegate<T>
,Registry<T>
,WritableRegistry<T>
- 所有已知实现类:
BaseMappedRegistry
,DefaultedMappedRegistry
,MappedRegistry
,RegistrySetBuilder.EmptyTagLookupWrapper
,RegistrySetBuilder.EmptyTagRegistryLookup
- 封闭接口:
HolderLookup<T>
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.core.HolderLookup
HolderLookup.Provider, HolderLookup.RegistryLookup<T>
-
方法概要
修饰符和类型方法说明default HolderLookup.RegistryLookup
<T> filterElements
(Predicate<T> p_324043_) default HolderLookup.RegistryLookup
<T> filterFeatures
(FeatureFlagSet p_249397_) default <A> A
getData
(DataMapType<T, A> type, ResourceKey<T> key) 返回 the data map value attached with the object with the key, ornull
if there's no attached value。ResourceKey
<? extends Registry<? extends T>> key()
com.mojang.serialization.Lifecycle
从接口继承的方法 net.minecraft.core.HolderGetter
get, get, getOrThrow, getOrThrow
从接口继承的方法 net.minecraft.core.HolderLookup
listElementIds, listElements, listTagIds, listTags
从接口继承的方法 net.minecraft.core.HolderOwner
canSerializeIn
-
方法详细资料
-
key
ResourceKey<? extends Registry<? extends T>> key() -
registryLifecycle
com.mojang.serialization.Lifecycle registryLifecycle() -
filterFeatures
-
filterElements
-
getData
返回 the data map value attached with the object with the key, ornull
if there's no attached value。- 类型参数:
A
- the data type- 参数:
type
- the type of the data mapkey
- the object to get the value for- 返回:
- the data map value attached with the object with the key, or
null
if there's no attached value
-