public interface NbtTag extends net.lenni0451.mcstructs.core.Copyable<NbtTag>
| Modifier and Type | Method | Description |
|---|---|---|
default NbtArray<?,?,?,?> |
asArrayTag() |
Get this tag as an array tag.
|
default ByteArrayTag |
asByteArrayTag() |
Get this tag as a byte array tag.
|
default ByteTag |
asByteTag() |
Get this tag as a byte tag.
|
default CompoundTag |
asCompoundTag() |
Get this tag as a compound tag.
|
default DoubleTag |
asDoubleTag() |
Get this tag as a double tag.
|
default FloatTag |
asFloatTag() |
Get this tag as a float tag.
|
default IntArrayTag |
asIntArrayTag() |
Get this tag as an int array tag.
|
default IntTag |
asIntTag() |
Get this tag as an int tag.
|
default <T extends NbtTag> |
asListTag() |
Get this tag as a list tag.
|
default LongArrayTag |
asLongArrayTag() |
Get this tag as a long array tag.
|
default LongTag |
asLongTag() |
Get this tag as a long tag.
|
default NbtNumber |
asNumberTag() |
Get this tag as a number tag.
|
default ShortTag |
asShortTag() |
Get this tag as a short tag.
|
default StringTag |
asStringTag() |
Get this tag as a string tag.
|
NbtTag |
copy() |
|
boolean |
equals(java.lang.Object o) |
|
NbtType |
getNbtType() |
|
int |
hashCode() |
|
default boolean |
isArrayTag() |
|
default boolean |
isByteArrayTag() |
|
default boolean |
isByteTag() |
|
default boolean |
isCompoundTag() |
|
default boolean |
isDoubleTag() |
|
default boolean |
isFloatTag() |
|
default boolean |
isIntArrayTag() |
|
default boolean |
isIntTag() |
|
default boolean |
isListTag() |
|
default boolean |
isLongArrayTag() |
|
default boolean |
isLongTag() |
|
default boolean |
isNumberTag() |
|
default boolean |
isShortTag() |
|
default boolean |
isStringTag() |
|
java.lang.String |
toString() |
NbtType getNbtType()
default boolean isByteTag()
default ByteTag asByteTag()
java.lang.ClassCastException - If this tag is not a byte tagdefault boolean isShortTag()
default ShortTag asShortTag()
java.lang.ClassCastException - If this tag is not a short tagdefault boolean isIntTag()
default IntTag asIntTag()
java.lang.ClassCastException - If this tag is not an int tagdefault boolean isLongTag()
default LongTag asLongTag()
java.lang.ClassCastException - If this tag is not a long tagdefault boolean isFloatTag()
default FloatTag asFloatTag()
java.lang.ClassCastException - If this tag is not a float tagdefault boolean isDoubleTag()
default DoubleTag asDoubleTag()
java.lang.ClassCastException - If this tag is not a double tagdefault boolean isByteArrayTag()
default ByteArrayTag asByteArrayTag()
java.lang.ClassCastException - If this tag is not a byte array tagdefault boolean isStringTag()
default StringTag asStringTag()
java.lang.ClassCastException - If this tag is not a string tagdefault boolean isListTag()
default <T extends NbtTag> ListTag<T> asListTag()
T - The type of the list tagjava.lang.ClassCastException - If this tag is not a list tagdefault boolean isCompoundTag()
default CompoundTag asCompoundTag()
java.lang.ClassCastException - If this tag is not a compound tagdefault boolean isIntArrayTag()
default IntArrayTag asIntArrayTag()
java.lang.ClassCastException - If this tag is not an int array tagdefault boolean isLongArrayTag()
default LongArrayTag asLongArrayTag()
java.lang.ClassCastException - If this tag is not a long array tagdefault boolean isNumberTag()
default NbtNumber asNumberTag()
java.lang.ClassCastException - If this tag is not a number tagdefault boolean isArrayTag()
default NbtArray<?,?,?,?> asArrayTag()
java.lang.ClassCastException - If this tag is not an array tagboolean equals(java.lang.Object o)
equals in class java.lang.Objectint hashCode()
hashCode in class java.lang.Objectjava.lang.String toString()
toString in class java.lang.Object