/** * Updates the direction in which the specified entity is looking, normally this head rotation is independent of the * rotation of the entity itself */ public void handleEntityHeadLook(SPacketEntityHeadLook packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); Entity entity = packetIn.getEntity(this.clientWorldController); if (entity != null) { float f = (float)(packetIn.getYaw() * 360) / 256.0F; entity.setRotationYawHead(f); } }
/** * Updates the direction in which the specified entity is looking, normally this head rotation is independent of the * rotation of the entity itself */ void handleEntityHeadLook(SPacketEntityHeadLook packetIn);