Class Tag_End

All Implemented Interfaces:
ITag<Object>

public class Tag_End extends Basic_Tag<Object>
Class representing a NBT end tag.
Author:
Paul Ferlitz
  • Constructor Details

    • Tag_End

      public Tag_End()
      Create an empty end tag.
    • Tag_End

      public Tag_End(String name)
      Create an end tag with name and data set to null. WARNING: This constructor is here only for future proofing. As per NBT spec this tag should not have a name.
      Parameters:
      name - Name of the tag.
    • Tag_End

      public Tag_End(String name, Object data)
      Create an end tag with name and data. WARNING: This constructor is here only for future proofing. As per NBT spec this tag should not have a name nor data.
      Parameters:
      name - Name of the tag.
      data - The initial data of the tag.
  • Method Details

    • toString

      public String toString()
      Method for generating a formatable string representation of the tag.
      Specified by:
      toString in interface ITag<Object>
      Overrides:
      toString in class Tag<Object>
      Returns:
      String representatin of tag.