public void setEntityDead() {
   super.setEntityDead();
   inventorySlots.onCraftGuiClosed(this);
   if (craftingInventory != null) {
     craftingInventory.onCraftGuiClosed(this);
   }
 }
 public void setEntityDead() {
   int i = getSlimeSize();
   if (!worldObj.multiplayerWorld && i > 1 && health == 0) {
     for (int j = 0; j < 4; j++) {
       float f = (((float) (j % 2) - 0.5F) * (float) i) / 4F;
       float f1 = (((float) (j / 2) - 0.5F) * (float) i) / 4F;
       EntitySlime entityslime = new EntitySlime(worldObj);
       entityslime.setSlimeSize(i / 2);
       entityslime.setLocationAndAngles(
           posX + (double) f, posY + 0.5D, posZ + (double) f1, rand.nextFloat() * 360F, 0.0F);
       worldObj.entityJoinedWorld(entityslime);
     }
   }
   super.setEntityDead();
 }