Interface Tag

All Known Implementing Classes:
ArrayTag, ByteArrayTag, CompoundTag, IntArrayTag, ListTag, LongArrayTag, NumberTag, StringTag

public sealed interface Tag permits ArrayTag<T>, CompoundTag, NumberTag, StringTag
  • Method Summary

    Modifier and Type
    Method
    Description
    Makes a copy of this tag.
    Gets the TagType for this tag.
  • Method Details

    • type

      TagType type()
      Gets the TagType for this tag.
    • copy

      Tag copy()
      Makes a copy of this tag. For immutable tags, this may return the same object.