protected int decreaseAirSupply(int i) { int j = EnchantmentHelper.getRespiration(inventory); if (j > 0 && rand.nextInt(j + 1) > 0) { return i; } else { return super.decreaseAirSupply(i); } }
/** Decrements the entity's air supply when underwater */ protected int decreaseAirSupply(int par1) { int var2 = EnchantmentHelper.getRespiration(this.inventory); return var2 > 0 && this.rand.nextInt(var2 + 1) > 0 ? par1 : super.decreaseAirSupply(par1); }