public class TypedTagEntryList<T>
extends java.lang.Object
| Constructor and Description |
|---|
TypedTagEntryList(java.util.List<Holder<T>> entries) |
TypedTagEntryList(TagKey tag) |
| Modifier and Type | Method and Description |
|---|---|
static <T> com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<TypedTagEntryList<T>> |
codec(Registry registry,
com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<T> codec,
boolean requireList)
Create a codec for this class bound to the given registry.
|
java.util.List<Holder<T>> |
getEntries() |
TagKey |
getTag() |
boolean |
isEntries() |
boolean |
isTag() |
java.lang.String |
toString() |
public TypedTagEntryList(TagKey tag)
public static <T> com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<TypedTagEntryList<T>> codec(Registry registry, com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<T> codec, boolean requireList)
T - The type of the entriesregistry - The registry owning the tagrequireList - Require single entries to be in a listcodec - The codec of the entriespublic boolean isTag()
TagKeypublic boolean isEntries()
RegistryEntryspublic java.util.List<Holder<T>> getEntries()
RegistryEntrys of this listpublic java.lang.String toString()
toString in class java.lang.Object