Package net.minecraft.tags
Class Tag.OptionalElementEntry
java.lang.Object
net.minecraft.tags.Tag.OptionalElementEntry
- All Implemented Interfaces:
Tag.Entry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> boolean
build
(Function<ResourceLocation, Tag<T>> p_13369_, Function<ResourceLocation, T> p_13370_, Consumer<T> p_13371_) void
serializeTo
(com.google.gson.JsonArray p_13367_) toString()
boolean
verifyIfPresent
(Predicate<ResourceLocation> p_144394_, Predicate<ResourceLocation> p_144395_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.tags.Tag.Entry
visitOptionalDependencies, visitRequiredDependencies
-
Field Details
-
id
-
-
Constructor Details
-
OptionalElementEntry
-
-
Method Details
-
build
public <T> boolean build(Function<ResourceLocation, Tag<T>> p_13369_, Function<ResourceLocation, T> p_13370_, Consumer<T> p_13371_) -
serializeTo
public void serializeTo(com.google.gson.JsonArray p_13367_) - Specified by:
serializeTo
in interfaceTag.Entry
-
verifyIfPresent
public boolean verifyIfPresent(Predicate<ResourceLocation> p_144394_, Predicate<ResourceLocation> p_144395_) - Specified by:
verifyIfPresent
in interfaceTag.Entry
-
toString
-