-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNbtByte.Companion
-
Method Summary
Modifier and Type Method Description final IntegergetUnsigned()final UnitsetUnsigned(Integer unsigned)final BytegetValue()final UnitsetValue(@Deprecated(message = "Deprecated in favor of signed and unsigned flavours. Replace with the signed property.", replaceWith = @ReplaceWith(imports = {}, expression = "signed")) Byte value)StringgetStringValue()Returns a string representation of the tag's value. final BytegetSigned()final UnitsetSigned(Byte signed)NbtBytedeepCopy()Returns a new wrapper with the current value. -
-
Constructor Detail
-
NbtByte
NbtByte(Boolean value)
Wraps a byte1if the value istrueand0otherwise.- Parameters:
value- The value to be checked
-
NbtByte
NbtByte(Integer unsigned)
Converts the int value to an unsigned byte and wraps it.- Parameters:
unsigned- Unsigned value from0to255.
-
NbtByte
NbtByte(String signed)
Parses the string value as a signed byte and wraps it.- Parameters:
signed- Signed value from-128to127.
-
NbtByte
NbtByte(Byte signed)
-
-
Method Detail
-
getUnsigned
final Integer getUnsigned()
-
setUnsigned
final Unit setUnsigned(Integer unsigned)
-
setValue
final Unit setValue(@Deprecated(message = "Deprecated in favor of signed and unsigned flavours. Replace with the signed property.", replaceWith = @ReplaceWith(imports = {}, expression = "signed")) Byte value)
-
getStringValue
String getStringValue()
Returns a string representation of the tag's value.
The NbtList and the array types will have an output similar to a normal List and NbtCompound to a normal Map.
The class names of the NbtList's and NbtCompound's children will expose.
The returned string is compatible with string constructors of the same type.
Be aware that this may be a slow operation on big lists, arrays or compounds.
-
-
-
-