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

项目:DecompiledMinecraft    文件:EntityPlayerMP.java   
/**
 * Sends a packet to the player to remove an entity.
 */
public void removeEntity(Entity p_152339_1_)
{
    if (p_152339_1_ instanceof EntityPlayer)
    {
        this.playerNetServerHandler.sendPacket(new S13PacketDestroyEntities(new int[] {p_152339_1_.getEntityId()}));
    }
    else
    {
        this.destroyedItemsNetCache.add(Integer.valueOf(p_152339_1_.getEntityId()));
    }
}
项目:DecompiledMinecraft    文件:EntityPlayerMP.java   
/**
 * Sends a packet to the player to remove an entity.
 */
public void removeEntity(Entity p_152339_1_)
{
    if (p_152339_1_ instanceof EntityPlayer)
    {
        this.playerNetServerHandler.sendPacket(new S13PacketDestroyEntities(new int[] {p_152339_1_.getEntityId()}));
    }
    else
    {
        this.destroyedItemsNetCache.add(Integer.valueOf(p_152339_1_.getEntityId()));
    }
}
项目:DecompiledMinecraft    文件:NetHandlerPlayClient.java   
/**
 * Locally eliminates the entities. Invoked by the server when the items are in fact destroyed, or the player is no
 * longer registered as required to monitor them. The latter  happens when distance between the player and item
 * increases beyond a certain treshold (typically the viewing distance)
 */
public void handleDestroyEntities(S13PacketDestroyEntities packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    for (int i = 0; i < packetIn.getEntityIDs().length; ++i)
    {
        this.clientWorldController.removeEntityFromWorld(packetIn.getEntityIDs()[i]);
    }
}
项目:BaseClient    文件:EntityPlayerMP.java   
/**
 * Sends a packet to the player to remove an entity.
 */
public void removeEntity(Entity p_152339_1_)
{
    if (p_152339_1_ instanceof EntityPlayer)
    {
        this.playerNetServerHandler.sendPacket(new S13PacketDestroyEntities(new int[] {p_152339_1_.getEntityId()}));
    }
    else
    {
        this.destroyedItemsNetCache.add(Integer.valueOf(p_152339_1_.getEntityId()));
    }
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Locally eliminates the entities. Invoked by the server when the items are in fact destroyed, or the player is no
 * longer registered as required to monitor them. The latter  happens when distance between the player and item
 * increases beyond a certain treshold (typically the viewing distance)
 */
public void handleDestroyEntities(S13PacketDestroyEntities packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    for (int i = 0; i < packetIn.getEntityIDs().length; ++i)
    {
        this.clientWorldController.removeEntityFromWorld(packetIn.getEntityIDs()[i]);
    }
}
项目:BaseClient    文件:EntityPlayerMP.java   
/**
 * Sends a packet to the player to remove an entity.
 */
public void removeEntity(Entity p_152339_1_)
{
    if (p_152339_1_ instanceof EntityPlayer)
    {
        this.playerNetServerHandler.sendPacket(new S13PacketDestroyEntities(new int[] {p_152339_1_.getEntityId()}));
    }
    else
    {
        this.destroyedItemsNetCache.add(Integer.valueOf(p_152339_1_.getEntityId()));
    }
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Locally eliminates the entities. Invoked by the server when the items are in
 * fact destroyed, or the player is no longer registered as required to monitor
 * them. The latter happens when distance between the player and item increases
 * beyond a certain treshold (typically the viewing distance)
 */
public void handleDestroyEntities(S13PacketDestroyEntities packetIn) {
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    for (int i = 0; i < packetIn.getEntityIDs().length; ++i) {
        this.clientWorldController.removeEntityFromWorld(packetIn.getEntityIDs()[i]);
    }
}
项目:Resilience-Client-Source    文件:NetHandlerPlayClient.java   
/**
 * Locally eliminates the entities. Invoked by the server when the items are in fact destroyed, or the player is no
 * longer registered as required to monitor them. The latter  happens when distance between the player and item
 * increases beyond a certain treshold (typically the viewing distance)
 */
public void handleDestroyEntities(S13PacketDestroyEntities p_147238_1_)
{
    for (int var2 = 0; var2 < p_147238_1_.func_149098_c().length; ++var2)
    {
        this.clientWorldController.removeEntityFromWorld(p_147238_1_.func_149098_c()[var2]);
    }
}
项目:Cauldron    文件:EntityPlayerMP.java   
public void func_152339_d(Entity p_152339_1_)
{
    if (p_152339_1_ instanceof EntityPlayer)
    {
        this.playerNetServerHandler.sendPacket(new S13PacketDestroyEntities(new int[] {p_152339_1_.getEntityId()}));
    }
    else
    {
        this.destroyedItemsNetCache.add(Integer.valueOf(p_152339_1_.getEntityId()));
    }
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleDestroyEntities(S13PacketDestroyEntities p_147238_1_)
{
    for (int i = 0; i < p_147238_1_.func_149098_c().length; ++i)
    {
        this.clientWorldController.removeEntityFromWorld(p_147238_1_.func_149098_c()[i]);
    }
}
项目:Cauldron    文件:EntityPlayerMP.java   
public void func_152339_d(Entity p_152339_1_)
{
    if (p_152339_1_ instanceof EntityPlayer)
    {
        this.playerNetServerHandler.sendPacket(new S13PacketDestroyEntities(new int[] {p_152339_1_.getEntityId()}));
    }
    else
    {
        this.destroyedItemsNetCache.add(Integer.valueOf(p_152339_1_.getEntityId()));
    }
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleDestroyEntities(S13PacketDestroyEntities p_147238_1_)
{
    for (int i = 0; i < p_147238_1_.func_149098_c().length; ++i)
    {
        this.clientWorldController.removeEntityFromWorld(p_147238_1_.func_149098_c()[i]);
    }
}
项目:FairyFactions    文件:CommonProxy.java   
public void sendFairyDespawn(Entity entity) {
    final int[] eid = new int[] { entity.getEntityId() };
    final S13PacketDestroyEntities packet = new S13PacketDestroyEntities(eid);
    sendToAllPlayers(packet);
    entity.setDead();
}
项目:nailed    文件:BossBar.java   
public S13PacketDestroyEntities getDestroyPacket(){
    return new S13PacketDestroyEntities(entityId);
}
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Locally eliminates the entities. Invoked by the server when the items are in fact destroyed, or the player is no
 * longer registered as required to monitor them. The latter  happens when distance between the player and item
 * increases beyond a certain treshold (typically the viewing distance)
 */
void handleDestroyEntities(S13PacketDestroyEntities packetIn);
项目:DecompiledMinecraft    文件:INetHandlerPlayClient.java   
/**
 * Locally eliminates the entities. Invoked by the server when the items are in fact destroyed, or the player is no
 * longer registered as required to monitor them. The latter  happens when distance between the player and item
 * increases beyond a certain treshold (typically the viewing distance)
 */
void handleDestroyEntities(S13PacketDestroyEntities packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Locally eliminates the entities. Invoked by the server when the items are in fact destroyed, or the player is no
 * longer registered as required to monitor them. The latter  happens when distance between the player and item
 * increases beyond a certain treshold (typically the viewing distance)
 */
void handleDestroyEntities(S13PacketDestroyEntities packetIn);
项目:BaseClient    文件:INetHandlerPlayClient.java   
/**
 * Locally eliminates the entities. Invoked by the server when the items are in fact destroyed, or the player is no
 * longer registered as required to monitor them. The latter  happens when distance between the player and item
 * increases beyond a certain treshold (typically the viewing distance)
 */
void handleDestroyEntities(S13PacketDestroyEntities packetIn);
项目:Resilience-Client-Source    文件:INetHandlerPlayClient.java   
/**
 * Locally eliminates the entities. Invoked by the server when the items are in fact destroyed, or the player is no
 * longer registered as required to monitor them. The latter  happens when distance between the player and item
 * increases beyond a certain treshold (typically the viewing distance)
 */
void handleDestroyEntities(S13PacketDestroyEntities var1);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleDestroyEntities(S13PacketDestroyEntities p_147238_1_);
项目:Cauldron    文件:INetHandlerPlayClient.java   
void handleDestroyEntities(S13PacketDestroyEntities p_147238_1_);