From 24557bc2b37deb6a0edf497d547471832457b1dd Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Wed, 26 Nov 2014 08:32:16 +1100 Subject: Update to Minecraft 1.8 For more information please see http://www.spigotmc.org/ --- .../java/net/minecraft/server/ControllerMove.java | 71 ---------------------- 1 file changed, 71 deletions(-) delete mode 100644 src/main/java/net/minecraft/server/ControllerMove.java (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 deleted file mode 100644 index 525a4d17..00000000 --- a/src/main/java/net/minecraft/server/ControllerMove.java +++ /dev/null @@ -1,71 +0,0 @@ -package net.minecraft.server; - -public class ControllerMove { - - private EntityInsentient a; - private double b; - private double c; - private double d; - private double e; - private boolean f; - - 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 double b() { - return this.e; - } - - public void a(double d0, double d1, double d2, double d3) { - this.b = d0; - this.c = d1; - this.d = d2; - this.e = d3; - this.f = true; - } - - public void c() { - this.a.n(0.0F); - if (this.f) { - this.f = false; - int i = MathHelper.floor(this.a.boundingBox.b + 0.5D); - double d0 = this.b - this.a.locX; - double d1 = this.d - this.a.locZ; - double d2 = this.c - (double) i; - double d3 = d0 * d0 + d2 * d2 + d1 * d1; - - if (d3 >= 2.500000277905201E-7D) { - // CraftBukkit - Math -> TrigMath - 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.i((float) (this.e * this.a.getAttributeInstance(GenericAttributes.d).getValue())); - if (d2 > 0.0D && d0 * d0 + d1 * d1 < 1.0D) { - this.a.getControllerJump().a(); - } - } - } - } - - private float a(float f, float f1, float f2) { - float f3 = MathHelper.g(f1 - f); - - if (f3 > f2) { - f3 = f2; - } - - if (f3 < -f2) { - f3 = -f2; - } - - return f + f3; - } -} -- cgit v1.2.3