Package net.minecraft.tags
Class Tag.OptionalTagEntry
java.lang.Object
net.minecraft.tags.Tag.OptionalTagEntry
- All Implemented Interfaces:
Tag.Entry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> boolean
build(Function<ResourceLocation,Tag<T>> p_13379_, Function<ResourceLocation,T> p_13380_, Consumer<T> p_13381_)
void
serializeTo(com.google.gson.JsonArray p_13377_)
toString()
boolean
verifyIfPresent(Predicate<ResourceLocation> p_144397_, Predicate<ResourceLocation> p_144398_)
void
visitOptionalDependencies(Consumer<ResourceLocation> p_144400_)
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
visitRequiredDependencies
-
Field Details
-
id
-
-
Constructor Details
-
OptionalTagEntry
-
-
Method Details
-
build
public <T> boolean build(Function<ResourceLocation,Tag<T>> p_13379_, Function<ResourceLocation,T> p_13380_, Consumer<T> p_13381_) -
serializeTo
public void serializeTo(com.google.gson.JsonArray p_13377_)- Specified by:
serializeTo
in interfaceTag.Entry
-
toString
-
visitOptionalDependencies
- Specified by:
visitOptionalDependencies
in interfaceTag.Entry
-
verifyIfPresent
public boolean verifyIfPresent(Predicate<ResourceLocation> p_144397_, Predicate<ResourceLocation> p_144398_)- Specified by:
verifyIfPresent
in interfaceTag.Entry
-