/** * Print an error message to the user. * * @param message a message */ public void error(String message) { player.printError(message); }
/** * Print an raw message to the user. * * @param message a message */ public void printRaw(String message) { player.printRaw(message); }
@Override public void redo(UndoContext context) throws WorldEditException { if (entity != null) { entity.remove(); entity = null; } }
@Override public UUID getUniqueId() { return basePlayer.getUniqueId(); }
@Override public Location getLocation() { return basePlayer.getLocation(); }
@Override public void printDebug(String msg) { basePlayer.printDebug(msg); }
/** * Print a regular message to the user. * * @param message a message */ public void print(String message) { player.print(message); }
/** * Create a new base entity. * * @param type the entity type * @param nbtData NBT data */ public BaseEntity(EntityType type, CompoundTag nbtData) { this(type); setNbtData(nbtData); }
@Override public <B extends BlockStateHolder<B>> void sendFakeBlock(BlockVector3 pos, B block) { basePlayer.sendFakeBlock(pos, block); } }
@Override public boolean setLocation(Location location) { // TODO Add a changeset for this. return entity.setLocation(location); }
@Override public String getDisplayName() { return basePlayer.getDisplayName(); }
@Override public void setPosition(Vector3 pos, float pitch, float yaw) { basePlayer.setPosition(pos, pitch, yaw); }
@Override public BaseEntity getState() { return entity.getState(); }
@Override public BlockBag getInventoryBlockBag() { return basePlayer.getInventoryBlockBag(); }
@Override public SessionKey getSessionKey() { return basePlayer.getSessionKey(); }
@Override public void setGameMode(GameMode gameMode) { basePlayer.setGameMode(gameMode); }
@Override public void undo(UndoContext context) throws WorldEditException { if (entity != null) { entity.remove(); entity = null; } }
@Override public void printError(String msg) { basePlayer.printError(msg); }
@Override public void printRaw(String msg) { basePlayer.printRaw(msg); }
@Override public void print(String msg) { basePlayer.print(msg); }