Class EnumDyeColorNBTHandler
java.lang.Object
com.hrznstudio.titanium.nbthandler.data.EnumNBTHandler<net.minecraft.world.item.DyeColor>
com.hrznstudio.titanium.nbthandler.data.EnumDyeColorNBTHandler
- All Implemented Interfaces:
INBTHandler<net.minecraft.world.item.DyeColor>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.item.DyeColorgetFromId(int id) protected intgetIdFrom(net.minecraft.world.item.DyeColor obj) booleanisClassValid(Class<?> aClass) Checks if the NBTHandler can handle a class.Methods inherited from class com.hrznstudio.titanium.nbthandler.data.EnumNBTHandler
readFromNBT, storeToNBT
-
Constructor Details
-
EnumDyeColorNBTHandler
public EnumDyeColorNBTHandler()
-
-
Method Details
-
isClassValid
Description copied from interface:INBTHandlerChecks if the NBTHandler can handle a class.- Parameters:
aClass- The class that wants to be checked.- Returns:
- true if the capability can handle the class or false if it can't.
-
getIdFrom
protected int getIdFrom(net.minecraft.world.item.DyeColor obj) - Specified by:
getIdFromin classEnumNBTHandler<net.minecraft.world.item.DyeColor>
-
getFromId
protected net.minecraft.world.item.DyeColor getFromId(int id) - Specified by:
getFromIdin classEnumNBTHandler<net.minecraft.world.item.DyeColor>
-