public class DoubleNBTHandler extends java.lang.Object implements INBTHandler<java.lang.Double>
| Constructor and Description |
|---|
DoubleNBTHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isClassValid(java.lang.Class<?> aClass)
Checks if the NBTHandler can handle a class.
|
java.lang.Double |
readFromNBT(net.minecraft.nbt.CompoundNBT compound,
java.lang.String name,
java.lang.Double currentValue)
Reads the value from the NBT to be stored in the Field.
|
boolean |
storeToNBT(net.minecraft.nbt.CompoundNBT compound,
java.lang.String name,
java.lang.Double object)
Stores a value as the given name in the NBT.
|
public boolean isClassValid(java.lang.Class<?> aClass)
INBTHandlerisClassValid in interface INBTHandler<java.lang.Double>aClass - The class that wants to be checked.public boolean storeToNBT(@Nonnull
net.minecraft.nbt.CompoundNBT compound,
@Nonnull
java.lang.String name,
@Nonnull
java.lang.Double object)
INBTHandlerstoreToNBT in interface INBTHandler<java.lang.Double>compound - The NBT where the object needs to be stored.name - The name as it will be stored.object - The object value to be stored.public java.lang.Double readFromNBT(@Nonnull
net.minecraft.nbt.CompoundNBT compound,
@Nonnull
java.lang.String name,
@Nullable
java.lang.Double currentValue)
INBTHandlerreadFromNBT in interface INBTHandler<java.lang.Double>compound - The NBT that stores all the information.name - The name of the object stored in the NBT.currentValue - The current value of the object