Class ShortData
java.lang.Object
com.blamejared.crafttweaker.api.data.ShortData
- All Implemented Interfaces:
IData,INumberData
- DocParam:
- this 1058
-
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.ShortTagGets 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
-
ShortData
public ShortData(net.minecraft.nbt.ShortTag internal) -
ShortData
public ShortData(short 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.ShortTag 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()
-