类 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 p_215918_, boolean p_215919_, boolean p_215920_) private
TagEntry
(ExtraCodecs.TagOrElementLocation p_215922_, boolean p_215923_) -
方法概要
修饰符和类型方法说明<T> boolean
build
(TagEntry.Lookup<T> p_215928_, Consumer<T> p_215929_) static TagEntry
element
(ResourceLocation p_215926_) private ExtraCodecs.TagOrElementLocation
getId()
boolean
boolean
isTag()
static TagEntry
optionalElement
(ResourceLocation p_215944_) static TagEntry
optionalTag
(ResourceLocation p_215954_) static TagEntry
tag
(ResourceLocation p_215950_) toString()
boolean
verifyIfPresent
(Predicate<ResourceLocation> p_215941_, Predicate<ResourceLocation> p_215942_) void
visitOptionalDependencies
(Consumer<ResourceLocation> p_215948_) void
visitRequiredDependencies
(Consumer<ResourceLocation> p_215939_)
-
字段详细资料
-
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> p_215941_, Predicate<ResourceLocation> p_215942_) -
toString
-
getId
-
isRequired
public boolean isRequired() -
isTag
public boolean isTag()
-