Class NamedTag

java.lang.Object
com.sk89q.jnbt.NamedTag

@Deprecated(forRemoval=true) public class NamedTag extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
JNBT is being removed for adventure-nbt in WorldEdit 8.
A tag that has a name.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamedTag(String name, Tag tag)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a new named tag.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the name of the tag.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the tag.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NamedTag

      public NamedTag(String name, Tag tag)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new named tag.
      Parameters:
      name - the name
      tag - the tag
  • Method Details

    • getName

      public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the name of the tag.
      Returns:
      the name
    • getTag

      public Tag getTag()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the tag.
      Returns:
      the tag