mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +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
@@ -120,7 +120,8 @@ public class ScriptBlockPos implements IPos {
|
||||
}
|
||||
|
||||
public IPos fromLong(long serialized) {
|
||||
return NpcAPI.Instance().getIPos(BlockPos.fromLong(serialized));
|
||||
this.blockPos = BlockPos.fromLong(serialized);
|
||||
return this;
|
||||
}
|
||||
|
||||
public IPos normalize() {
|
||||
|
||||
Reference in new issue
Block a user