Package com.viaversion.nbt.tag
Class MixedListTag
Vanilla abomination that allows for mixed tag lists, serialized to a list of wrapping compound tags...
getElementType() will always return null.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a copy of this tag.Gets the element type of the ListTag.voidSets the value of this tag.voidwrite(DataOutput out) Writes this tag to an output stream.Methods inherited from class com.viaversion.nbt.tag.ListTag
add, asRawString, equals, get, getTagId, getValue, hashCode, isEmpty, iterator, of, read, remove, remove, set, size, stream, toStringMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MixedListTag
public MixedListTag() -
MixedListTag
-
-
Method Details
-
setValue
Description copied from class:ListTagSets the value of this tag. The list tag's type will be set to that of the first tag being added, or null if the given list is empty. -
getElementType
Description copied from class:ListTagGets the element type of the ListTag.- Overrides:
getElementTypein classListTag<Tag>- Returns:
- The ListTag's element type, or null if the list does not yet have a defined type.
-
write
Description copied from interface:TagWrites this tag to an output stream. -
copy
Description copied from interface:TagReturns a copy of this tag.
-