mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Tabs -> Spaces
This commit is contained in:
1 parent
170f4dd946
commit
ecb285f938
31 files changed
+5194
-5194
No files matched your search
@@ -21,30 +21,30 @@ 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());
|
||||
}
|
||||
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