Added a method to teleport entities across worlds.

This commit is contained in:
Matthew Miller
2018-12-21 16:56:10 +10:00
parent b300c21185
commit c949b07df1
14 changed files with 287 additions and 2 deletions

View File

@ -76,6 +76,12 @@ class ForgeEntity implements Entity {
}
}
@Override
public boolean setLocation(Location location) {
// TODO
return false;
}
@Override
public Extent getExtent() {
net.minecraft.entity.Entity entity = entityRef.get();

View File

@ -92,6 +92,12 @@ public class ForgePlayer extends AbstractPlayerActor {
this.player.rotationPitch);
}
@Override
public boolean setLocation(Location location) {
// TODO
return false;
}
@Override
public com.sk89q.worldedit.world.World getWorld() {
return ForgeWorldEdit.inst.getWorld(this.player.world);