public void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); Entity entity = packetIn.getEntity(this.clientWorldController); if (entity instanceof EntityLivingBase) { ((EntityLivingBase)entity).removeActivePotionEffect(packetIn.getPotion()); } }
protected void onFinishedPotionEffect(PotionEffect effect) { super.onFinishedPotionEffect(effect); this.connection.sendPacket(new SPacketRemoveEntityEffect(this.getEntityId(), effect.getPotion())); }
void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn);