diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-03-13 17:33:27 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-03-15 13:28:59 -0500 |
commit | 83d29e461c85733f0113b6eb19db6e3b42da2949 (patch) | |
tree | b3063a1c28f478ab368d5ba3413a842def68c28f /src/main/java/net/minecraft/server/ItemFood.java | |
parent | ba6e4c38cfa98ad291974195cc46d70a4f138ac1 (diff) | |
download | craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.gz craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.lz craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.xz craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.zip |
Update CraftBukkit to Minecraft 1.5
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemFood.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemFood.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/main/java/net/minecraft/server/ItemFood.java b/src/main/java/net/minecraft/server/ItemFood.java index 28fbe430..409addf8 100644 --- a/src/main/java/net/minecraft/server/ItemFood.java +++ b/src/main/java/net/minecraft/server/ItemFood.java @@ -5,18 +5,18 @@ public class ItemFood extends Item { public final int a; private final int b; private final float c; - private final boolean co; - private boolean cp; - private int cq; - private int cr; - private int cs; - private float ct; + private final boolean d; + private boolean cu; + private int cv; + private int cw; + private int cx; + private float cy; public ItemFood(int i, int j, float f, boolean flag) { super(i); this.a = 32; this.b = j; - this.co = flag; + this.d = flag; this.c = f; this.a(CreativeModeTab.h); } @@ -45,8 +45,8 @@ public class ItemFood extends Item { } protected void c(ItemStack itemstack, World world, EntityHuman entityhuman) { - if (!world.isStatic && this.cq > 0 && world.random.nextFloat() < this.ct) { - entityhuman.addEffect(new MobEffect(this.cq, this.cr * 20, this.cs)); + if (!world.isStatic && this.cv > 0 && world.random.nextFloat() < this.cy) { + entityhuman.addEffect(new MobEffect(this.cv, this.cw * 20, this.cx)); } } @@ -55,11 +55,11 @@ public class ItemFood extends Item { } public EnumAnimation b_(ItemStack itemstack) { - return EnumAnimation.b; + return EnumAnimation.EAT; } public ItemStack a(ItemStack itemstack, World world, EntityHuman entityhuman) { - if (entityhuman.g(this.cp)) { + if (entityhuman.i(this.cu)) { entityhuman.a(itemstack, this.c_(itemstack)); } @@ -75,19 +75,19 @@ public class ItemFood extends Item { } public boolean i() { - return this.co; + return this.d; } public ItemFood a(int i, int j, int k, float f) { - this.cq = i; - this.cr = j; - this.cs = k; - this.ct = f; + this.cv = i; + this.cw = j; + this.cx = k; + this.cy = f; return this; } public ItemFood j() { - this.cp = true; + this.cu = true; return this; } } |