类 Holder.Reference<T>
java.lang.Object
net.minecraft.core.Holder.Reference<T>
- 所有已实现的接口:
Supplier<T>
,Holder<T>
,IReverseTag<T>
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.core.Holder
Holder.Direct<T>, Holder.Kind, Holder.Reference<T>
-
字段概要
字段修饰符和类型字段说明private ResourceKey<T>
private final HolderOwner<T>
private final Holder.Reference.Type
private T
-
构造器概要
构造器限定符构造器说明private
Reference
(Holder.Reference.Type pType, HolderOwner<T> pOwner, ResourceKey<T> pKey, T pValue) -
方法概要
修饰符和类型方法说明void
bindKey
(ResourceKey<T> pKey) void
bindTags
(Collection<TagKey<T>> pTags) void
boolean
canSerializeIn
(HolderOwner<T> pOwner) static <T> Holder.Reference<T>
createIntrusive
(HolderOwner<T> pOwner, T pValue) 已过时。static <T> Holder.Reference<T>
createStandAlone
(HolderOwner<T> pOwner, ResourceKey<T> pKey) getType()
boolean
is
(Predicate<ResourceKey<T>> pPredicate) boolean
is
(ResourceKey<T> pResourceKey) boolean
is
(ResourceLocation pLocation) boolean
boolean
isBound()
key()
kind()
tags()
toString()
com.mojang.datafixers.util.Either<ResourceKey<T>,
T> unwrap()
value()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.core.Holder
containsTag, get, getTagKeys
从接口继承的方法 net.minecraftforge.registries.tags.IReverseTag
containsTag
-
字段详细资料
-
owner
-
tags
-
type
-
key
-
value
-
-
构造器详细资料
-
Reference
private Reference(Holder.Reference.Type pType, HolderOwner<T> pOwner, @Nullable ResourceKey<T> pKey, @Nullable T pValue)
-
-
方法详细资料
-
createStandAlone
-
createIntrusive
@Deprecated public static <T> Holder.Reference<T> createIntrusive(HolderOwner<T> pOwner, @Nullable T pValue) 已过时。 -
key
-
value
-
is
-
is
-
is
-
is
-
canSerializeIn
- 指定者:
canSerializeIn
在接口中Holder<T>
-
unwrap
-
unwrapKey
-
kind
-
isBound
public boolean isBound() -
bindKey
-
bindValue
-
bindTags
-
tags
-
getType
-
toString
-