From 6c09066e224ac85b8a6464eaf8f53edfeb4beda4 Mon Sep 17 00:00:00 2001 From: Nate Mortensen Date: Mon, 1 Jul 2013 06:03:00 -0500 Subject: Update CraftBukkit to 1.6.1 --- .../java/net/minecraft/server/ControllerMove.java | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/main/java/net/minecraft/server/ControllerMove.java') diff --git a/src/main/java/net/minecraft/server/ControllerMove.java b/src/main/java/net/minecraft/server/ControllerMove.java index 1b66c970..246c6a36 100644 --- a/src/main/java/net/minecraft/server/ControllerMove.java +++ b/src/main/java/net/minecraft/server/ControllerMove.java @@ -2,38 +2,38 @@ package net.minecraft.server; public class ControllerMove { - private EntityLiving a; + private EntityInsentient a; private double b; private double c; private double d; - private float e; - private boolean f = false; + private double e; + private boolean f; - public ControllerMove(EntityLiving entityliving) { - this.a = entityliving; - this.b = entityliving.locX; - this.c = entityliving.locY; - this.d = entityliving.locZ; + public ControllerMove(EntityInsentient entityinsentient) { + this.a = entityinsentient; + this.b = entityinsentient.locX; + this.c = entityinsentient.locY; + this.d = entityinsentient.locZ; } public boolean a() { return this.f; } - public float b() { + public double b() { return this.e; } - public void a(double d0, double d1, double d2, float f) { + public void a(double d0, double d1, double d2, double d3) { this.b = d0; this.c = d1; this.d = d2; - this.e = f; + this.e = d3; this.f = true; } public void c() { - this.a.f(0.0F); + this.a.n(0.0F); if (this.f) { this.f = false; int i = MathHelper.floor(this.a.boundingBox.b + 0.5D); @@ -47,7 +47,7 @@ public class ControllerMove { float f = (float) (org.bukkit.craftbukkit.TrigMath.atan2(d1, d0) * 180.0D / 3.1415927410125732D) - 90.0F; this.a.yaw = this.a(this.a.yaw, f, 30.0F); - this.a.e(this.e * this.a.bE()); + this.a.i((float) (this.e * this.a.a(GenericAttributes.d).e())); if (d2 > 0.0D && d0 * d0 + d1 * d1 < 1.0D) { this.a.getControllerJump().a(); } -- cgit v1.2.3