Package com.viaversion.nbt.conversion
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
-
Method Details
-
convert
Converts a tag to a value.- Parameters:
tag- Tag to convert.- Returns:
- The converted value.
-
convert
Converts a value to a tag.- Parameters:
value- Value to convert.- Returns:
- The converted tag.
-