Class DoubleData
java.lang.Object
com.blamejared.crafttweaker.api.data.DoubleData
- All Implemented Interfaces:
IData,INumberData
- DocParam:
- this 3.25
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blamejared.crafttweaker.api.data.base.IData
IData.Type -
Constructor Summary
ConstructorsConstructorDescriptionDoubleData(double internal) DoubleData(net.minecraft.nbt.DoubleTag internal) -
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.DoubleTagGets 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
-
DoubleData
public DoubleData(net.minecraft.nbt.DoubleTag internal) -
DoubleData
public DoubleData(double 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.DoubleTag 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()
-