类 TagEntry
java.lang.Object
net.minecraft.tags.TagEntry
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec<TagEntry>
private static final com.mojang.serialization.Codec<TagEntry>
private final ResourceLocation
private final boolean
private final boolean
-
构造器概要
构造器限定符构造器说明private
TagEntry
(ResourceLocation pId, boolean pTag, boolean pRequired) private
TagEntry
(ExtraCodecs.TagOrElementLocation p_215922_, boolean p_215923_) -
方法概要
修饰符和类型方法说明<T> boolean
build
(TagEntry.Lookup<T> pLookup, Consumer<T> pConsumer) static TagEntry
element
(ResourceLocation pElementLocation) private ExtraCodecs.TagOrElementLocation
getId()
boolean
boolean
isTag()
static TagEntry
optionalElement
(ResourceLocation pElementLocation) static TagEntry
optionalTag
(ResourceLocation pTagLocation) static TagEntry
tag
(ResourceLocation pTagLocation) toString()
boolean
verifyIfPresent
(Predicate<ResourceLocation> pElementPredicate, Predicate<ResourceLocation> pTagPredicate) void
visitOptionalDependencies
(Consumer<ResourceLocation> pVisitor) void
visitRequiredDependencies
(Consumer<ResourceLocation> pVisitor)
-
字段详细资料
-
FULL_CODEC
-
CODEC
-
id
-
tag
private final boolean tag -
required
private final boolean required
-
-
构造器详细资料
-
TagEntry
-
TagEntry
-
-
方法详细资料
-
elementOrTag
-
element
-
optionalElement
-
tag
-
optionalTag
-
build
-
visitRequiredDependencies
-
visitOptionalDependencies
-
verifyIfPresent
public boolean verifyIfPresent(Predicate<ResourceLocation> pElementPredicate, Predicate<ResourceLocation> pTagPredicate) -
toString
-
getId
-
isRequired
public boolean isRequired() -
isTag
public boolean isTag()
-