Class ShortData
java.lang.Object
com.blamejared.crafttweaker.api.data.ShortData
- All Implemented Interfaces:
IData,Comparable<IData>,Iterable<IData>
- DocParam:
- this (1058 as IData)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blamejared.crafttweaker.api.data.IData
IData.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(DataVisitor<T> visitor) Adds the given IData to this IData.Applies a bitwise AND (&) operation to this IData and the other IDatabooleanasBool()Casts this IData to a boolean.byteasByte()Casts this IData to a byte.doubleasDouble()Casts this IData to a double.floatasFloat()Casts this IData to a float.intasInt()Casts this IData to an int.longasLong()Casts this IData to a long.shortasShort()Casts this IData to a short.intCompares this IData to the other IDatabooleanChecks if this IData contains the other IDatacopy()Divides the given IData from this IData.booleanbooleanChecks if this IData is equal to the other IData.net.minecraft.nbt.ShortTagGets the internal Tag stored in this IData.getType()Gets the type of this IData.inthashCode()Applies a modulo operation to this IData against the other IData.Multiplies the given IData to this IData.neg()Negates this IData.Applies a bitwise OR (|) operation to this IData and the other IDataApplies a SHL (<<) operation to this data by the other dataApplies a SHR (>>) operation to this data by the other dataSubtracts the given IData from this IData.toString()Applies a bitwise XOR (^) operation to this IData and the other IDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.blamejared.crafttweaker.api.data.IData
asByteArray, asIntArray, asList, asLongArray, asMap, asString, cat, containsList, getAsString, getAt, getAt, getId, getKeys, isEmpty, isListable, isMappable, iterator, length, map, merge, not, put, remove, remove, setAtMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ShortData
public ShortData(net.minecraft.nbt.ShortTag internal) -
ShortData
public ShortData(short internal)
-
-
Method Details
-
add
Description copied from interface:IDataAdds the given IData to this IData. -
sub
Description copied from interface:IDataSubtracts the given IData from this IData. -
mul
Description copied from interface:IDataMultiplies the given IData to this IData. -
div
Description copied from interface:IDataDivides the given IData from this IData. -
mod
Description copied from interface:IDataApplies a modulo operation to this IData against the other IData. -
or
Description copied from interface:IDataApplies a bitwise OR (|) operation to this IData and the other IData -
and
Description copied from interface:IDataApplies a bitwise AND (&) operation to this IData and the other IData -
xor
Description copied from interface:IDataApplies a bitwise XOR (^) operation to this IData and the other IData -
neg
Description copied from interface:IDataNegates this IData. -
contains
Description copied from interface:IDataChecks if this IData contains the other IDataFor most data types, this will check equality of the data, but for map data, it will check if the other data is a string, and then check if it contains a key with that name
-
compareTo
Description copied from interface:IDataCompares this IData to the other IData- Specified by:
compareToin interfaceComparable<IData>- Specified by:
compareToin interfaceIData- Parameters:
other- the data to be compared.- Returns:
- The comparison result.
-
equalTo
Description copied from interface:IDataChecks if this IData is equal to the other IData. -
shl
Description copied from interface:IDataApplies a SHL (<<) operation to this data by the other data -
shr
Description copied from interface:IDataApplies a SHR (>>) operation to this data by the other data -
asBool
public boolean asBool()Description copied from interface:IDataCasts this IData to a boolean. -
asByte
public byte asByte()Description copied from interface:IDataCasts this IData to a byte. -
asShort
public short asShort()Description copied from interface:IDataCasts this IData to a short. -
asInt
public int asInt()Description copied from interface:IDataCasts this IData to an int. -
asLong
public long asLong()Description copied from interface:IDataCasts this IData to a long. -
asFloat
public float asFloat()Description copied from interface:IDataCasts this IData to a float. -
asDouble
public double asDouble()Description copied from interface:IDataCasts this IData to a double. -
getInternal
public net.minecraft.nbt.ShortTag getInternal()Description copied from interface:IDataGets the internal Tag stored in this IData.- Specified by:
getInternalin interfaceIData- Returns:
- the vanilla Tag that this IData represents.
-
copy
-
copyInternal
- Specified by:
copyInternalin interfaceIData
-
accept
-
getType
Description copied from interface:IDataGets the type of this IData. -
equals
-
hashCode
public int hashCode() -
toString
-