31323334353637
static { registerBallast(Blocks.gravel, 0); } public static void registerBallast(Block block, int metadata) { ballastRegistry.add(new BlockKey(block, metadata)); }
3637383940414243
ballastRegistry.add(new BlockKey(block, metadata)); } public static boolean isItemBallast(ItemStack stack) { if (stack.getItem() instanceof ItemBlock) return ballastRegistry.contains(new BlockKey(((ItemBlock) stack.getItem()).field_150939_a, stack.getItemDamage())); return false; }
177178179180181182183
public static void addMineableBlock(Block block) { addMineableBlock(block, -1); } public static void addMineableBlock(Block block, int meta) { mineableBlocks.add(new BlockKey(block, meta)); }