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