Interface ByteBinaryTag

All Superinterfaces:
BinaryTag, BinaryTagLike, net.kyori.examination.Examinable, NumberBinaryTag

public interface ByteBinaryTag
extends NumberBinaryTag
A binary tag holding a byte value.
Since:
4.0.0
  • Field Details

    • ZERO

      static final ByteBinaryTag ZERO
      A tag with the value 0.
      Since:
      4.0.0
    • ONE

      static final ByteBinaryTag ONE
      A tag with the value 1.
      Since:
      4.0.0
  • Method Details

    • of

      static @NonNull ByteBinaryTag of​(byte value)
      Creates a binary tag holding a byte value.
      Parameters:
      value - the value
      Returns:
      a binary tag
      Since:
      4.0.0
    • type

      default @NonNull BinaryTagType<ByteBinaryTag> type()
      Description copied from interface: BinaryTag
      Gets the tag type.
      Specified by:
      type in interface BinaryTag
      Specified by:
      type in interface NumberBinaryTag
      Returns:
      the tag type
    • value

      byte value()
      Gets the value.
      Returns:
      the value
      Since:
      4.0.0