Package 

Class NbtLong

  • All Implemented Interfaces:

    
    public final class NbtLong
    extends NbtTag
                        

    A tag which wraps a long value.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      NbtLong(String signed) Parses the string value as a signed long and wraps it.
      NbtLong(Long value)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getStringValue() Returns a string representation of the tag's value.
      final Long getValue()
      final Unit setValue(Long value)
      NbtLong deepCopy() Returns a new wrapper with the current value.
      • Methods inherited from class br.com.gamemods.nbtmanipulator.NbtLong

        toString
      • Methods inherited from class java.lang.Object

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

      • NbtLong

        NbtLong(String signed)
        Parses the string value as a signed long and wraps it.
        Parameters:
        signed - Signed value from -9223372036854775808 to 9223372036854775807.
      • NbtLong

        NbtLong(Long value)
    • Method Detail

      • getStringValue

         String getStringValue()

        Returns a string representation of the tag's value.

        The NbtList and the array types will have an output similar to a normal List and NbtCompound to a normal Map.

        The class names of the NbtList's and NbtCompound's children will expose.

        The returned string is compatible with string constructors of the same type.

        Be aware that this may be a slow operation on big lists, arrays or compounds.

      • deepCopy

         NbtLong deepCopy()

        Returns a new wrapper with the current value.