Uses of Interface
com.viaversion.nbt.tag.Tag
Packages that use Tag
Package
Description
-
Uses of Tag in com.viaversion.nbt.conversion
Classes in com.viaversion.nbt.conversion with type parameters of type TagModifier and TypeInterfaceDescriptioninterfaceTagConverter<T extends Tag,V> A converter that converts between a tag type and a value type.Methods in com.viaversion.nbt.conversion with type parameters of type TagModifier and TypeMethodDescriptionstatic <V,T extends Tag>
TConverterRegistry.convertToTag(V value) Converts the given value to a tag.static <T extends Tag,V>
VConverterRegistry.convertToValue(T tag) Converts the given tag to a value.static <T extends Tag,V>
voidConverterRegistry.register(Class<T> tag, Class<? extends V> type, TagConverter<T, V> converter) Registers a converter.static <T extends Tag,V>
voidConverterRegistry.unregister(Class<T> tag, Class<V> type) Unregisters a converter. -
Uses of Tag in com.viaversion.nbt.io
Classes in com.viaversion.nbt.io with type parameters of type TagModifier and TypeClassDescriptionfinal classNBT tag reader.static interfaceTagRegistry.TagSupplier<T extends Tag>Methods in com.viaversion.nbt.io with type parameters of type TagModifier and TypeMethodDescriptionReturns an NBT tag reader to read an expected tag type.static <T extends Tag>
TNBTIO.readTag(DataInput in, TagLimiter tagLimiter, boolean named, @Nullable Class<T> expectedTagType) Reads a named NBT tag from a data input.static <T extends Tag>
voidTagRegistry.register(int id, Class<T> tag, TagRegistry.TagSupplier<T> supplier) Registers a tag class.Methods in com.viaversion.nbt.io that return TagModifier and TypeMethodDescriptionstatic TagTagRegistry.read(int id, DataInput in, TagLimiter tagLimiter, int nestingLevel) Creates an instance of the tag with the given id, using the String constructor.Methods in com.viaversion.nbt.io that return types with arguments of type TagModifier and TypeMethodDescriptionTagRegistry.getClassFor(int id) Gets the tag class with the given id.NBTIO.reader()Returns an NBT tag reader.Methods in com.viaversion.nbt.io with parameters of type TagModifier and TypeMethodDescriptionvoidTagWriter.write(DataOutput out, Tag tag) Writes the tag to the given data output.voidTagWriter.write(OutputStream out, Tag tag) Writes the tag to the given output stream.voidWrites the tag to the given path.static voidNBTIO.writeTag(DataOutput out, Tag tag, boolean named) Writes a named NBT tag to a data output.Method parameters in com.viaversion.nbt.io with type arguments of type Tag -
Uses of Tag in com.viaversion.nbt.stringified
Methods in com.viaversion.nbt.stringified that return TagModifier and TypeMethodDescriptionstatic TagSNBT.deserialize(String snbt) Reads a compound tag from aString.Methods in com.viaversion.nbt.stringified with parameters of type Tag -
Uses of Tag in com.viaversion.nbt.tag
Classes in com.viaversion.nbt.tag with type parameters of type TagSubinterfaces of Tag in com.viaversion.nbt.tagModifier and TypeInterfaceDescriptioninterfaceinterfaceAbstract class representing a number tag, containing methods to return primitive number types.Classes in com.viaversion.nbt.tag that implement TagModifier and TypeClassDescriptionfinal classA tag containing a byte array.final classA tag containing a byte.final classA compound tag containing other tags.final classA tag containing a double.final classA tag containing a float.final classA tag containing an integer array.final classA tag containing an integer.classA tag containing a list of tags.final classA tag containing a long array.final classA tag containing a long.final classVanilla abomination that allows for mixed tag lists, serialized to a list of wrapping compound tags...final classA tag containing a short.final classA tag containing a string.Methods in com.viaversion.nbt.tag with type parameters of type TagModifier and TypeMethodDescriptionCompoundTag.getListTag(String tagName, Class<T> type) <T extends Tag>
TCompoundTag.getUnchecked(String tagName) Returns a tag by name if present.<T extends Tag>
TCompoundTag.removeUnchecked(String tagName) Removes a tag from this compound tag.Methods in com.viaversion.nbt.tag that return TagModifier and TypeMethodDescriptionTag.copy()Returns a copy of this tag.@Nullable TagReturns a tag by name if present.@Nullable TagPuts the tag into this compound tag.@Nullable TagRemoves a tag from this compound tag.Methods in com.viaversion.nbt.tag that return types with arguments of type TagModifier and TypeMethodDescriptionCompoundTag.entrySet()Gets the entry set of this compound tag.ListTag.getElementType()Gets the element type of the ListTag.MixedListTag.getElementType()CompoundTag.getValue()CompoundTag.iterator()CompoundTag.values()Gets a collection of tags in this compound tag.Methods in com.viaversion.nbt.tag with parameters of type TagMethod parameters in com.viaversion.nbt.tag with type arguments of type TagModifier and TypeMethodDescriptionstatic ListTag<?> Creates a list tag, possibly of mixed types.voidCompoundTag.setValue(LinkedHashMap<String, Tag> value) Sets the value of this tag without wrapping the map.voidSets the value of this tag.voidConstructor parameters in com.viaversion.nbt.tag with type arguments of type TagModifierConstructorDescriptionCompoundTag(LinkedHashMap<String, Tag> value) Creates a tag without wrapping the map.CompoundTag(Map<String, Tag> value) Creates a tag.MixedListTag(List<Tag> value)