Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- public class ItemSugaredCoal extends Item
- {
- private int healAmount;
- public ItemSugaredCoal (int i, int j)
- {
- super(i);
- maxStackSize = 1;
- healAmount = j;
- }
- public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
- {
- itemstack.stackSize--;
- entityplayer.heal(healAmount);
- return itemstack;
- }
- }
Add Comment
Please, Sign In to add comment