More deprecation removal

This commit is contained in:
Matthew Miller
2018-06-16 16:36:55 +10:00
parent 20bf6e079b
commit aaaf2d5678
152 changed files with 701 additions and 1150 deletions

View File

@ -81,27 +81,11 @@ public class SpongePlayer extends AbstractPlayerActor {
return SpongeWorldEdit.inst().getAdapter().adapt(entityLoc, entityRot);
}
@Override
public Location getPosition() {
Vector3d pos = this.player.getLocation().getPosition();
return new Location(SpongeWorldEdit.inst().getAdapter().getWorld(this.player.getWorld()), pos.getX(), pos.getY(), pos.getZ());
}
@Override
public com.sk89q.worldedit.world.World getWorld() {
return SpongeWorldEdit.inst().getAdapter().getWorld(player.getWorld());
}
@Override
public double getPitch() {
return getLocation().getPitch();
}
@Override
public double getYaw() {
return getLocation().getYaw();
}
@Override
public void giveItem(int type, int amt) {
this.player.getInventory().offer(ItemStack.of(SpongeWorldEdit.inst().getAdapter().resolveItem(type), amt));