From 49b2df1f2e63077a2834bff82d55b0c36ab23f66 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 1 Apr 2019 05:06:03 +1100 Subject: [PATCH] remove redundant methods --- .../com/sk89q/worldedit/util/Location.java | 53 ------------------- 1 file changed, 53 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/util/Location.java b/worldedit-core/src/main/java/com/sk89q/worldedit/util/Location.java index c63a6b6bb..d126f5aaf 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/util/Location.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/util/Location.java @@ -245,24 +245,6 @@ public class Location extends Vector3 { return this; } - /** - * Get the X component of the position vector. - * - * @return the X component - */ - public double getX() { - return this.getX(); - } - - /** - * Get the rounded X component of the position vector. - * - * @return the rounded X component - */ - public int getBlockX() { - return (int) Math.floor(this.getX()); - } - /** * Return a copy of this object with the X component of the new object * set to the given value. @@ -274,23 +256,6 @@ public class Location extends Vector3 { return new Location(extent, this.withX(x), yaw, pitch); } - /** - * Get the Y component of the position vector. - * - * @return the Y component - */ - public double getY() { - return this.getY(); - } - - /** - * Get the rounded Y component of the position vector. - * - * @return the rounded Y component - */ - public int getBlockY() { - return (int) Math.floor(this.getY()); - } /** * Return a copy of this object with the Y component of the new object @@ -303,24 +268,6 @@ public class Location extends Vector3 { return new Location(extent, this.withY(y), yaw, pitch); } - /** - * Get the Z component of the position vector. - * - * @return the Z component - */ - public double getZ() { - return this.getZ(); - } - - /** - * Get the rounded Z component of the position vector. - * - * @return the rounded Z component - */ - public int getBlockZ() { - return (int) Math.floor(this.getZ()); - } - /** * Return a copy of this object with the Z component of the new object * set to the given value.