public static class Tag.ListEntry<T> extends java.lang.Object implements Tag.ITagEntry<T>
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<T> |
taggedItems |
Constructor and Description |
---|
ListEntry(java.util.Collection<T> taggedItemsIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Collection<T> |
getTaggedItems() |
int |
hashCode() |
void |
populate(java.util.Collection<T> itemsIn) |
void |
serialize(com.google.gson.JsonArray array,
java.util.function.Function<T,ResourceLocation> getNameForObject) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
resolve
private final java.util.Collection<T> taggedItems
public ListEntry(java.util.Collection<T> taggedItemsIn)
public void populate(java.util.Collection<T> itemsIn)
populate
in interface Tag.ITagEntry<T>
public void serialize(com.google.gson.JsonArray array, java.util.function.Function<T,ResourceLocation> getNameForObject)
serialize
in interface Tag.ITagEntry<T>
public java.util.Collection<T> getTaggedItems()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object