Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 28 lines 546 B view raw
1package net.minecraft.server; 2 3public class ItemFood extends Item { 4 5 private int a; 6 private boolean bk; 7 8 public ItemFood(int i, int j, boolean flag) { 9 super(i); 10 this.a = j; 11 this.bk = flag; 12 this.maxStackSize = 1; 13 } 14 15 public ItemStack a(ItemStack itemstack, World world, EntityHuman entityhuman) { 16 --itemstack.count; 17 entityhuman.b(this.a); 18 return itemstack; 19 } 20 21 public int k() { 22 return this.a; 23 } 24 25 public boolean l() { 26 return this.bk; 27 } 28}