java.lang.Object
at.syntaxerror.syntaxnbt.tag.Tag<N>
at.syntaxerror.syntaxnbt.tag.TagNumber<N>
- Type Parameters:
N- type of the number stored in this tag
- Author:
- SyntaxError404
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteReturns the stored valuecasted to a bytedoubleReturns the stored valuecasted to a doublefloatReturns the stored valuecasted to a floatintintValue()Returns the stored valuecasted to a intlongReturns the stored valuecasted to a longshortReturns the stored valuecasted to a short
-
Constructor Details
-
TagNumber
Constructs a new tag with a type and an initial value- Parameters:
type- type of this tagnumber- initial value
-
-
Method Details
-
byteValue
public byte byteValue()Returns the stored valuecasted to a byte- Returns:
- the byte
-
shortValue
public short shortValue()Returns the stored valuecasted to a short- Returns:
- the short
-
intValue
public int intValue()Returns the stored valuecasted to a int- Returns:
- the int
-
longValue
public long longValue()Returns the stored valuecasted to a long- Returns:
- the long
-
floatValue
public float floatValue()Returns the stored valuecasted to a float- Returns:
- the float
-
doubleValue
public double doubleValue()Returns the stored valuecasted to a double- Returns:
- the double
-