//nbt-manipulator/br.com.gamemods.nbtmanipulator/NbtByte
NbtByte
[jvm]
data class NbtByte(signed: Byte) : NbtTag
A tag which wraps a byte value.
Constructors
NbtByte | [jvm] fun NbtByte(value: Boolean) Wraps a byte 1 if the value is true and 0 otherwise. |
NbtByte | [jvm] fun NbtByte(unsigned: Int) Converts the int value to an unsigned byte and wraps it. |
NbtByte | [jvm] fun NbtByte(signed: String) Parses the string value as a signed byte and wraps it. |
NbtByte | [jvm] fun NbtByte(signed: Byte) |
Types
Name | Summary |
---|---|
Companion | [jvm] object Companion |
Functions
Name | Summary |
---|---|
deepCopy | [jvm] open override fun deepCopy(): NbtByte Returns a new wrapper with the current value. |
toString | [jvm] override fun toString(): String A technical string representation of this tag, containing the tag type, and it’s value, appropriated for developer inspections. |
Properties
Name | Summary |
---|---|
signed | [jvm] var signed: Byte A signed byte from -128 to 127 |
stringValue | [jvm] open override val stringValue: String Returns a string representation of the tag’s signed value. |
unsigned | [jvm] var unsigned: Int Read or write the signed as a signed byte from 0 to 255. |
value | [jvm] A signed byte from -128 to 127. |