-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
NbtByte.Companion
-
Method Summary
Modifier and Type Method Description final Integer
getUnsigned()
final Unit
setUnsigned(Integer unsigned)
final Byte
getValue()
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)
String
getStringValue()
Returns a string representation of the tag's value. final Byte
getSigned()
final Unit
setSigned(Byte signed)
NbtByte
deepCopy()
Returns a new wrapper with the current value. -
-
Constructor Detail
-
NbtByte
NbtByte(Boolean value)
Wraps a byte1
if the value istrue
and0
otherwise.- 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 from0
to255
.
-
NbtByte
NbtByte(String signed)
Parses the string value as a signed byte and wraps it.- Parameters:
signed
- Signed value from-128
to127
.
-
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.
-
-
-
-