mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 18:59:49 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -109,7 +109,7 @@ public class ScriptBlockPos implements IPos {
|
||||
}
|
||||
|
||||
public IPos crossProduct(double x, double y, double z) {
|
||||
return this.crossProduct(NpcAPI.Instance().getIPos(x,y,z));
|
||||
return this.crossProduct(NpcAPI.Instance().getIPos(x, y, z));
|
||||
}
|
||||
|
||||
public IPos crossProduct(IPos pos) {
|
||||
@@ -118,7 +118,7 @@ public class ScriptBlockPos implements IPos {
|
||||
|
||||
public IPos divide(double scalar) {
|
||||
return NpcAPI.Instance().getIPos(
|
||||
getXD()/scalar , getYD()/scalar, getZD()/scalar
|
||||
getXD() / scalar, getYD() / scalar, getZD() / scalar
|
||||
);
|
||||
}
|
||||
|
||||
@@ -160,9 +160,9 @@ public class ScriptBlockPos implements IPos {
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
double xd = Math.floor(this.getXD() * 1000)/1000.0D;
|
||||
double yd = Math.floor(this.getYD() * 1000)/1000.0D;
|
||||
double zd = Math.floor(this.getZD() * 1000)/1000.0D;
|
||||
double xd = Math.floor(this.getXD() * 1000) / 1000.0D;
|
||||
double yd = Math.floor(this.getYD() * 1000) / 1000.0D;
|
||||
double zd = Math.floor(this.getZD() * 1000) / 1000.0D;
|
||||
return "(" + xd + ", " + yd + ", " + zd + ")";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user