package HxCKDMS.gkpk.items;

import HxCKDMS.gkpk.client.GordianCreativeTab;
import HxCKDMS.gkpk.data.Configs;
import cpw.mods.fml.common.IFuelHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.Items;
import net.minecraft.item.EnumAction;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;

public class ItemEthanol extends Item implements IFuelHandler {
    public ItemEthanol() {
        this.setCreativeTab(GordianCreativeTab.gordianCreativeTab);
        this.setUnlocalizedName("gEthanol");
        this.setTextureName("GKPK:ethanol");
        this.setMaxStackSize(32);
    }

    @Override
    public int getBurnTime(ItemStack fuel) {
        return 120;
    }

    @Override
    public EnumAction getItemUseAction(ItemStack item) {
        return EnumAction.drink;
    }

    @Override
    public int getMaxItemUseDuration(ItemStack par1ItemStack) {
        return 32;
    }

    @Override
    public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
        if (player.capabilities.isCreativeMode) {
            this.onEaten(stack, world, player);
            return stack;
        } else {
            player.setItemInUse(stack, getMaxItemUseDuration(stack));
            return stack;
        }
    }

    @Override
    public ItemStack onEaten(ItemStack stack, World world, EntityPlayer player) {
        if (player instanceof EntityPlayerMP)
            Configs.drugs.get("ethanol").activateDrug((EntityPlayerMP) player);
        if (!player.capabilities.isCreativeMode) {
            player.inventory.addItemStackToInventory(new ItemStack(Items.glass_bottle));
            stack.stackSize--;
            if (stack.stackSize < 1) return null;
        }
        return stack;
    }
}
@@ -697,18 +697,18 @@
 ackSize(
-32
+48
 );%0A    %7D
@@ -1851,8 +1851,9 @@
 %0A    %7D%0A%7D
+%0A

Update ItemEthanol.java