public void setSpectatingEntity(Entity entityToSpectate) { Entity entity = this.getSpectatingEntity(); this.spectatingEntity = (Entity)(entityToSpectate == null ? this : entityToSpectate); if (entity != this.spectatingEntity) { this.connection.sendPacket(new SPacketCamera(this.spectatingEntity)); this.setPositionAndUpdate(this.spectatingEntity.posX, this.spectatingEntity.posY, this.spectatingEntity.posZ); } }
public void handleCamera(SPacketCamera packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); Entity entity = packetIn.getEntity(this.clientWorldController); if (entity != null) { this.gameController.setRenderViewEntity(entity); } }
void handleCamera(SPacketCamera packetIn);