mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-14 13:13:53 +00:00
More deprecation removal
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user