private boolean hasInventorySpace() { if (inv[0] == null) return true; if (!ReikaItemHelper.matchStacks(inv[0], ItemStacks.bedrockdust)) return false; return inv[0].stackSize + DifficultyEffects.BEDROCKDUST.getInt() <= inv[0].getMaxStackSize(); }
private int getNumberDust(World world, int x, int y, int z) { // float f = Math.min(1, ((TileEntityBedrockSlice)world.getTileEntity(x, y, z)).dustYield); // return Math.max(1, (int)(f*DifficultyEffects.BEDROCKDUST.getInt())); return DifficultyEffects.BEDROCKDUST.getInt(); }
private ItemStack getDrops() { ItemStack dust = ReikaItemHelper.getSizedItemStack( ItemStacks.bedrockdust, DifficultyEffects.BEDROCKDUST.getInt()); return dust; }