Interface StringBinaryTag

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

public interface StringBinaryTag
extends BinaryTag
A binary tag holding a String value.
Since:
4.0.0
  • Method Summary

    Modifier and Type Method Description
    static @NonNull StringBinaryTag of​(@NonNull String value)
    Creates a binary tag holding a String value.
    default @NonNull BinaryTagType<StringBinaryTag> type()
    Gets the tag type.
    @NonNull String value()
    Gets the value.

    Methods inherited from interface net.kyori.adventure.nbt.BinaryTag

    asBinaryTag

    Methods inherited from interface net.kyori.examination.Examinable

    examinableName, examinableProperties, examine
  • Method Details

    • of

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

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

      @NonNull String value()
      Gets the value.
      Returns:
      the value
      Since:
      4.0.0