Interface TagConverter<T extends Tag,V>

Type Parameters:
T - Tag type.
V - Value type.
All Known Implementing Classes:
ByteArrayTagConverter, ByteTagConverter, CompoundTagConverter, DoubleTagConverter, FloatTagConverter, IntArrayTagConverter, IntTagConverter, ListTagConverter, LongArrayTagConverter, LongTagConverter, ShortTagConverter, StringTagConverter

public interface TagConverter<T extends Tag,V>
A converter that converts between a tag type and a value type. A converted tag will have its value and all children converted to raw types and vice versa.
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(T tag)
    Converts a tag to a value.
    convert(V value)
    Converts a value to a tag.
  • Method Details

    • convert

      V convert(T tag)
      Converts a tag to a value.
      Parameters:
      tag - Tag to convert.
      Returns:
      The converted value.
    • convert

      T convert(V value)
      Converts a value to a tag.
      Parameters:
      value - Value to convert.
      Returns:
      The converted tag.