/** * 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())); } }
/** * 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]); } }
/** * 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]); } }
/** * 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]); } }
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())); } }
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]); } }
public void sendFairyDespawn(Entity entity) { final int[] eid = new int[] { entity.getEntityId() }; final S13PacketDestroyEntities packet = new S13PacketDestroyEntities(eid); sendToAllPlayers(packet); entity.setDead(); }
public S13PacketDestroyEntities getDestroyPacket(){ return new S13PacketDestroyEntities(entityId); }
/** * 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);
/** * 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);
void handleDestroyEntities(S13PacketDestroyEntities p_147238_1_);