Class LongTag

java.lang.Object
net.md_5.bungee.nbt.type.LongTag
All Implemented Interfaces:
Tag, TypedTag

public class LongTag extends Object implements TypedTag
  • Constructor Details

    • LongTag

      public LongTag()
    • LongTag

      public LongTag(long value)
  • Method Details

    • read

      public void read(DataInput input, NBTLimiter limiter) throws IOException
      Description copied from interface: Tag
      Reads the data into this tag.
      Specified by:
      read in interface Tag
      Parameters:
      input - the input to read from
      limiter - the limiter for this read operation
      Throws:
      IOException - if an exception occurs during io operations
    • write

      public void write(DataOutput output) throws IOException
      Description copied from interface: Tag
      Writes this tag into a DataOutput.
      Specified by:
      write in interface Tag
      Parameters:
      output - the output to write to
      Throws:
      IOException - if an exception occurs during io operations
    • getId

      public byte getId()
      Description copied from interface: TypedTag
      Gets the id of this tag's type.
      Specified by:
      getId in interface TypedTag
      Returns:
      the id related to this tag's type
    • getValue

      public long getValue()
    • setValue

      public void setValue(long value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object