public static class Tag.Builder<T> extends java.lang.Object implements IForgeTagBuilder<T>
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Tag.ITagEntry<T>> |
entries |
private boolean |
preserveOrder |
private boolean |
replace |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Tag.Builder<T> |
add(T... itemsIn) |
Tag.Builder<T> |
add(T itemIn) |
Tag.Builder<T> |
add(Tag.ITagEntry<T> entry) |
Tag.Builder<T> |
add(Tag<T>... tags) |
Tag.Builder<T> |
add(Tag<T> tagIn) |
Tag<T> |
build(ResourceLocation resourceLocationIn) |
static <T> Tag.Builder<T> |
create() |
Tag.Builder<T> |
fromJson(java.util.function.Function<ResourceLocation,java.util.Optional<T>> p_219783_1_,
com.google.gson.JsonObject p_219783_2_) |
Tag.Builder<T> |
ordered(boolean preserveOrderIn) |
Tag.Builder<T> |
remove(Tag.ITagEntry<T> e) |
Tag.Builder<T> |
replace() |
Tag.Builder<T> |
replace(boolean value) |
boolean |
resolve(java.util.function.Function<ResourceLocation,Tag<T>> resourceLocationToTag) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOptional, addOptional, addOptional, addOptionalTag, addOptionalTag, addOptionalTag
private final java.util.Set<Tag.ITagEntry<T>> entries
private boolean preserveOrder
private boolean replace
public static <T> Tag.Builder<T> create()
public Tag.Builder<T> add(Tag.ITagEntry<T> entry)
public Tag.Builder<T> add(T itemIn)
@SafeVarargs public final Tag.Builder<T> add(T... itemsIn)
public Tag.Builder<T> add(Tag<T> tagIn)
@SafeVarargs public final Tag.Builder<T> add(Tag<T>... tags)
public Tag.Builder<T> replace(boolean value)
public Tag.Builder<T> replace()
public Tag.Builder<T> ordered(boolean preserveOrderIn)
public boolean resolve(java.util.function.Function<ResourceLocation,Tag<T>> resourceLocationToTag)
public Tag<T> build(ResourceLocation resourceLocationIn)
public Tag.Builder<T> fromJson(java.util.function.Function<ResourceLocation,java.util.Optional<T>> p_219783_1_, com.google.gson.JsonObject p_219783_2_)
public Tag.Builder<T> remove(Tag.ITagEntry<T> e)