/** Will get destroyed next tick. */
  public void setDead() {
    super.setDead();
    this.inventorySlots.onCraftGuiClosed(this);

    if (this.craftingInventory != null) {
      this.craftingInventory.onCraftGuiClosed(this);
    }
  }
  /** Will get destroyed next tick. */
  public void setDead() {
    int i = getSlimeSize();

    if (!worldObj.isRemote && i > 1 && getHealth() <= 0) {
      int j = 2 + rand.nextInt(3);

      for (int k = 0; k < j; k++) {
        float f = (((float) (k % 2) - 0.5F) * (float) i) / 4F;
        float f1 = (((float) (k / 2) - 0.5F) * (float) i) / 4F;
        EntitySlime entityslime = createInstance();
        entityslime.setSlimeSize(i / 2);
        entityslime.setLocationAndAngles(
            posX + (double) f, posY + 0.5D, posZ + (double) f1, rand.nextFloat() * 360F, 0.0F);
        worldObj.spawnEntityInWorld(entityslime);
      }
    }

    super.setDead();
  }