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

项目:Zombe-Modpack    文件:EntityPlayerMP.java   
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);
    }
}
项目:Zombe-Modpack    文件:NetHandlerPlayClient.java   
public void handleCamera(SPacketCamera packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        this.gameController.setRenderViewEntity(entity);
    }
}
项目:Backmemed    文件:EntityPlayerMP.java   
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);
    }
}
项目:Backmemed    文件:NetHandlerPlayClient.java   
public void handleCamera(SPacketCamera packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        this.gameController.setRenderViewEntity(entity);
    }
}
项目:CustomWorldGen    文件:EntityPlayerMP.java   
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);
    }
}
项目:CustomWorldGen    文件:NetHandlerPlayClient.java   
public void handleCamera(SPacketCamera packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        this.gameController.setRenderViewEntity(entity);
    }
}
项目:ExpandedRailsMod    文件:EntityPlayerMP.java   
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);
    }
}
项目:ExpandedRailsMod    文件:NetHandlerPlayClient.java   
public void handleCamera(SPacketCamera packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        this.gameController.setRenderViewEntity(entity);
    }
}
项目:Backmemed    文件:INetHandlerPlayClient.java   
void handleCamera(SPacketCamera packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayClient.java   
void handleCamera(SPacketCamera packetIn);