public interface INbtTag extends net.lenni0451.mcstructs.core.ICopyable<INbtTag>
| Modifier and Type | Method and Description |
|---|---|
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 INbtTag> |
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 ShortTag |
asShortTag()
Get this tag as a short tag.
|
default StringTag |
asStringTag()
Get this tag as a string tag.
|
INbtTag |
copy() |
boolean |
equals(java.lang.Object o) |
NbtType |
getNbtType() |
int |
hashCode() |
java.lang.String |
toString() |
NbtType getNbtType()
default ByteTag asByteTag()
java.lang.ClassCastException - If this tag is not a byte tagdefault ShortTag asShortTag()
java.lang.ClassCastException - If this tag is not a short tagdefault IntTag asIntTag()
java.lang.ClassCastException - If this tag is not an int tagdefault LongTag asLongTag()
java.lang.ClassCastException - If this tag is not a long tagdefault FloatTag asFloatTag()
java.lang.ClassCastException - If this tag is not a float tagdefault DoubleTag asDoubleTag()
java.lang.ClassCastException - If this tag is not a double tagdefault ByteArrayTag asByteArrayTag()
java.lang.ClassCastException - If this tag is not a byte array tagdefault StringTag asStringTag()
java.lang.ClassCastException - If this tag is not a string tagdefault <T extends INbtTag> ListTag<T> asListTag()
T - The type of the list tagjava.lang.ClassCastException - If this tag is not a list tagdefault CompoundTag asCompoundTag()
java.lang.ClassCastException - If this tag is not a compound tagdefault IntArrayTag asIntArrayTag()
java.lang.ClassCastException - If this tag is not an int array tagdefault LongArrayTag asLongArrayTag()
java.lang.ClassCastException - If this tag is not a long 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