Package 

Class NbtByte

  • All Implemented Interfaces:

    
    public final class NbtByte
    extends NbtTag
                        

    A tag which wraps a byte value.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class NbtByte.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      NbtByte(Boolean value) Wraps a byte 1 if the value is true and 0 otherwise.
      NbtByte(Integer unsigned) Converts the int value to an unsigned byte and wraps it.
      NbtByte(String signed) Parses the string value as a signed byte and wraps it.
      NbtByte(Byte signed)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • NbtByte

        NbtByte(Boolean value)
        Wraps a byte 1 if the value is true and 0 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 from 0 to 255.
      • NbtByte

        NbtByte(String signed)
        Parses the string value as a signed byte and wraps it.
        Parameters:
        signed - Signed value from -128 to 127.
      • NbtByte

        NbtByte(Byte signed)