Java 类net.minecraft.network.play.server.SPacketEntityHeadLook 实例源码

项目:Zombe-Modpack    文件:NetHandlerPlayClient.java   
/**
 * 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);
    }
}
项目:Backmemed    文件:NetHandlerPlayClient.java   
/**
 * 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);
    }
}
项目:CustomWorldGen    文件:NetHandlerPlayClient.java   
/**
 * 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);
    }
}
项目:ExpandedRailsMod    文件:NetHandlerPlayClient.java   
/**
 * 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);
    }
}
项目:Backmemed    文件:INetHandlerPlayClient.java   
/**
 * 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);
项目:CustomWorldGen    文件:INetHandlerPlayClient.java   
/**
 * 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);