mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 00:14:51 +00:00
IPos objects now use double values in calculations for distance, addition, cross product, etc.
This commit is contained in:
1 parent
9de16f1eef
commit
b592bb5d5e
7 files changed
+58
-43
No files matched your search
@@ -276,16 +276,16 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
return new ScriptBlockPos(pos);
|
||||
}
|
||||
|
||||
public IPos getIPos(int x, int y, int z) {
|
||||
return new ScriptBlockPos(new BlockPos(x,y,z));
|
||||
public IPos getIPos(double x, double y, double z) {
|
||||
return this.getIPos(new BlockPos(x,y,z));
|
||||
}
|
||||
|
||||
public IPos getIPos(double x, double y, double z) {
|
||||
return this.getIPos((int)x,(int)y,(int)z);
|
||||
public IPos getIPos(int x, int y, int z) {
|
||||
return this.getIPos((double) x, (double) y, (double) z);
|
||||
}
|
||||
|
||||
public IPos getIPos(float x, float y, float z) {
|
||||
return this.getIPos((int)x,(int)y,(int)z);
|
||||
return this.getIPos((double) x, (double) y, (double) z);
|
||||
}
|
||||
|
||||
public IPos getIPos(long serializedPos) {
|
||||
|
||||
Reference in new issue
Block a user