diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-11-06 06:05:28 -0600 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-11-13 16:09:52 -0600 |
commit | 7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7 (patch) | |
tree | 843902ff94d82e86f40d7e0af1ac838fee859e75 /src/main/java/net/minecraft/server/ItemFood.java | |
parent | a0c3b4f9d1b403fa64230f22b5dd3222181ba646 (diff) | |
download | craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.tar craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.tar.gz craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.tar.lz craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.tar.xz craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.zip |
Update CraftBukkit to Minecraft 1.4.4.
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemFood.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemFood.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/main/java/net/minecraft/server/ItemFood.java b/src/main/java/net/minecraft/server/ItemFood.java index a2214886..5a3862d2 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 ck; - private boolean cl; - private int cm; + private final boolean cl; + private boolean cm; private int cn; private int co; - private float cp; + private int cp; + private float cq; public ItemFood(int i, int j, float f, boolean flag) { super(i); this.a = 32; this.b = j; - this.ck = flag; + this.cl = 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.cm > 0 && world.random.nextFloat() < this.cp) { - entityhuman.addEffect(new MobEffect(this.cm, this.cn * 20, this.co)); + if (!world.isStatic && this.cn > 0 && world.random.nextFloat() < this.cq) { + entityhuman.addEffect(new MobEffect(this.cn, this.co * 20, this.cp)); } } @@ -59,7 +59,7 @@ public class ItemFood extends Item { } public ItemStack a(ItemStack itemstack, World world, EntityHuman entityhuman) { - if (entityhuman.f(this.cl)) { + if (entityhuman.f(this.cm)) { entityhuman.a(itemstack, this.a(itemstack)); } @@ -75,19 +75,19 @@ public class ItemFood extends Item { } public boolean i() { - return this.ck; + return this.cl; } public ItemFood a(int i, int j, int k, float f) { - this.cm = i; - this.cn = j; - this.co = k; - this.cp = f; + this.cn = i; + this.co = j; + this.cp = k; + this.cq = f; return this; } public ItemFood j() { - this.cl = true; + this.cm = true; return this; } } |