Package net.minecraft.tag
Class Tag.OptionalObjectEntry
java.lang.Object
net.minecraft.tag.Tag.OptionalObjectEntry
- All Implemented Interfaces:
Tag.Entry
public static class Tag.OptionalObjectEntry extends Object implements Tag.Entry
-
Field Summary
Fields Modifier and Type Field Description private Identifier
id
-
Constructor Summary
Constructors Constructor Description OptionalObjectEntry(Identifier id)
-
Method Summary
Modifier and Type Method Description void
addToJson(JsonArray json)
boolean
method_32832(Predicate<Identifier> predicate, Predicate<Identifier> predicate2)
<T> boolean
resolve(Function<Identifier,Tag<T>> tagGetter, Function<Identifier,T> objectGetter, Consumer<T> collector)
String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.tag.Tag.Entry
method_32831, method_32833
-
Field Details
-
id
-
-
Constructor Details
-
OptionalObjectEntry
-
-
Method Details
-
resolve
public <T> boolean resolve(Function<Identifier,Tag<T>> tagGetter, Function<Identifier,T> objectGetter, Consumer<T> collector) -
addToJson
-
method_32832
- Specified by:
method_32832
in interfaceTag.Entry
-
toString
-