mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Run through new formatter.
This commit is contained in:
1 parent
b48e97a799
commit
170f4dd946
34 files changed
+5636
-7150
No files matched your search
@@ -20,38 +20,31 @@ package net.h31ix.anticheat.util;
|
||||
|
||||
import org.bukkit.Location;
|
||||
|
||||
public class Distance
|
||||
{
|
||||
private final Location l1, l2;
|
||||
|
||||
public Distance(Location from, Location to)
|
||||
{
|
||||
l1 = to;
|
||||
l2 = from;
|
||||
}
|
||||
|
||||
public double fromY()
|
||||
{
|
||||
return l2.getY();
|
||||
}
|
||||
|
||||
public double toY()
|
||||
{
|
||||
return l1.getY();
|
||||
}
|
||||
|
||||
public double getXDifference()
|
||||
{
|
||||
return Math.abs(l1.getX() - l2.getX());
|
||||
}
|
||||
|
||||
public double getZDifference()
|
||||
{
|
||||
return Math.abs(l1.getZ() - l2.getZ());
|
||||
}
|
||||
|
||||
public double getYDifference()
|
||||
{
|
||||
return Math.abs(l1.getY() - l2.getY());
|
||||
}
|
||||
public class Distance {
|
||||
private final Location l1, l2;
|
||||
|
||||
public Distance(Location from, Location to) {
|
||||
l1 = to;
|
||||
l2 = from;
|
||||
}
|
||||
|
||||
public double fromY() {
|
||||
return l2.getY();
|
||||
}
|
||||
|
||||
public double toY() {
|
||||
return l1.getY();
|
||||
}
|
||||
|
||||
public double getXDifference() {
|
||||
return Math.abs(l1.getX() - l2.getX());
|
||||
}
|
||||
|
||||
public double getZDifference() {
|
||||
return Math.abs(l1.getZ() - l2.getZ());
|
||||
}
|
||||
|
||||
public double getYDifference() {
|
||||
return Math.abs(l1.getY() - l2.getY());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user