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>

public class EnumDyeColorNBTHandler extends EnumNBTHandler<net.minecraft.world.item.DyeColor>
  • Constructor Details

    • EnumDyeColorNBTHandler

      public EnumDyeColorNBTHandler()
  • Method Details

    • isClassValid

      public boolean isClassValid(Class<?> aClass)
      Description copied from interface: INBTHandler
      Checks 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:
      getIdFrom in class EnumNBTHandler<net.minecraft.world.item.DyeColor>
    • getFromId

      protected net.minecraft.world.item.DyeColor getFromId(int id)
      Specified by:
      getFromId in class EnumNBTHandler<net.minecraft.world.item.DyeColor>