Class LongData
java.lang.Object
com.blamejared.crafttweaker.api.data.LongData
- All Implemented Interfaces:
IData,INumberData
- DocParam:
- this 800000000
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blamejared.crafttweaker.api.data.base.IData
IData.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(DataVisitor<T> visitor) booleanChecks if this IData contains another IData, mainly used in subclasses ofICollectionData, is the same as an equals check on other IData typescopy()Makes a copy of this IData.Makes a copy of this IData with a copy of the internal INBT object.booleannet.minecraft.nbt.LongTagGets the internal INBT stored in this IData.getType()Gets the type of this IData.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LongData
public LongData(net.minecraft.nbt.LongTag internal) -
LongData
public LongData(long internal)
-
-
Method Details
-
copy
Description copied from interface:IDataMakes a copy of this IData. IData is immutable by default, use this to create a proper copy of the object.- Specified by:
copyin interfaceIData- Specified by:
copyin interfaceINumberData- Returns:
- a copy of this IData.
-
copyInternal
Description copied from interface:IDataMakes a copy of this IData with a copy of the internal INBT object.- Specified by:
copyInternalin interfaceIData- Specified by:
copyInternalin interfaceINumberData- Returns:
- a copy of this IData with a copy of the internal INBT object.
-
getInternal
public net.minecraft.nbt.LongTag getInternal()Description copied from interface:IDataGets the internal INBT stored in this IData.- Specified by:
getInternalin interfaceIData- Specified by:
getInternalin interfaceINumberData- Returns:
- the vanilla INBT tag that this IData represents.
-
contains
Description copied from interface:IDataChecks if this IData contains another IData, mainly used in subclasses ofICollectionData, is the same as an equals check on other IData types -
getType
Description copied from interface:IDataGets the type of this IData. -
accept
-
equals
-
hashCode
public int hashCode()
-