public static class Tag.TagEntry<T> extends java.lang.Object implements Tag.ITagEntry<T>
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
id |
private Tag<T> |
tag |
Constructor and Description |
---|
TagEntry(ResourceLocation resourceLocationIn) |
TagEntry(Tag<T> tagIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ResourceLocation |
getSerializedId() |
int |
hashCode() |
void |
populate(java.util.Collection<T> itemsIn) |
boolean |
resolve(java.util.function.Function<ResourceLocation,Tag<T>> resourceLocationToTag) |
void |
serialize(com.google.gson.JsonArray array,
java.util.function.Function<T,ResourceLocation> getNameForObject) |
@Nullable private final ResourceLocation id
public TagEntry(ResourceLocation resourceLocationIn)
public boolean resolve(java.util.function.Function<ResourceLocation,Tag<T>> resourceLocationToTag)
resolve
in interface Tag.ITagEntry<T>
public void populate(java.util.Collection<T> itemsIn)
populate
in interface Tag.ITagEntry<T>
public ResourceLocation getSerializedId()
public void serialize(com.google.gson.JsonArray array, java.util.function.Function<T,ResourceLocation> getNameForObject)
serialize
in interface Tag.ITagEntry<T>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object