diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-10-24 22:53:23 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-27 22:19:03 -0400 |
commit | 60819c6693daf19dde68b04af38a4fee8c7da988 (patch) | |
tree | e7bd96a07f0e9d9f1f6b2721ddd1bb5dd71eaf48 /src/main/java/net/minecraft/server/ItemFood.java | |
parent | b9a72531b6e2ccc84bd021bca421255a957d96f7 (diff) | |
download | craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.gz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.lz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.xz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.zip |
Update CraftBukkit to Minecraft 1.4(.2).
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemFood.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemFood.java | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/main/java/net/minecraft/server/ItemFood.java b/src/main/java/net/minecraft/server/ItemFood.java index ffe16976..a2214886 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 bY; - private boolean bZ; - private int ca; - private int cb; - private int cc; - private float cd; + private final boolean ck; + private boolean cl; + private int cm; + private int cn; + private int co; + private float cp; public ItemFood(int i, int j, float f, boolean flag) { super(i); this.a = 32; this.b = j; - this.bY = flag; + this.ck = 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.ca > 0 && world.random.nextFloat() < this.cd) { - entityhuman.addEffect(new MobEffect(this.ca, this.cb * 20, this.cc)); + if (!world.isStatic && this.cm > 0 && world.random.nextFloat() < this.cp) { + entityhuman.addEffect(new MobEffect(this.cm, this.cn * 20, this.co)); } } @@ -54,12 +54,12 @@ public class ItemFood extends Item { return 32; } - public EnumAnimation b(ItemStack itemstack) { + public EnumAnimation d_(ItemStack itemstack) { return EnumAnimation.b; } public ItemStack a(ItemStack itemstack, World world, EntityHuman entityhuman) { - if (entityhuman.e(this.bZ)) { + if (entityhuman.f(this.cl)) { entityhuman.a(itemstack, this.a(itemstack)); } @@ -74,20 +74,20 @@ public class ItemFood extends Item { return this.c; } - public boolean h() { - return this.bY; + public boolean i() { + return this.ck; } public ItemFood a(int i, int j, int k, float f) { - this.ca = i; - this.cb = j; - this.cc = k; - this.cd = f; + this.cm = i; + this.cn = j; + this.co = k; + this.cp = f; return this; } - public ItemFood i() { - this.bZ = true; + public ItemFood j() { + this.cl = true; return this; } } |