Class FloatData
java.lang.Object
com.blamejared.crafttweaker.api.data.FloatData
- All Implemented Interfaces:
IData,Comparable<IData>,Iterable<IData>
- DocParam:
- this (8.5 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.booleanasBool()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.FloatTagGets 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.Subtracts the given IData from this IData.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.blamejared.crafttweaker.api.data.IData
and, asByteArray, asIntArray, asList, asLongArray, asMap, asString, cat, containsList, getAsString, getAt, getAt, getId, getKeys, isEmpty, isListable, isMappable, iterator, length, map, merge, not, or, put, remove, remove, setAt, shl, shr, xorMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FloatData
public FloatData(net.minecraft.nbt.FloatTag internal) -
FloatData
public FloatData(float internal)
-
-
Method Details
-
getInternal
public net.minecraft.nbt.FloatTag 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. -
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. -
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. -
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. -
equals
-
hashCode
public int hashCode() -
toString
-