mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-15 20:44:50 +00:00
NpcAPI:
-New function to create IPos objects from a long IPos: -fromLong() now mutates the calling IPos object
This commit is contained in:
1 parent
29fb8d1dcf
commit
3a6255d98f
2 files changed
+6
-1
No files matched your search
@@ -288,6 +288,10 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
return this.getIPos((int)x,(int)y,(int)z);
|
||||
}
|
||||
|
||||
public IPos getIPos(long serializedPos) {
|
||||
return this.getIPos(BlockPos.fromLong(serializedPos));
|
||||
}
|
||||
|
||||
public IPos[] getAllInBox(IPos from, IPos to, boolean sortByDistance) {
|
||||
ArrayList<IPos> list = new ArrayList<>();
|
||||
if (from != null && to != null) {
|
||||
|
||||
Reference in new issue
Block a user