Package mods.railcraft.common.util.collections

Examples of mods.railcraft.common.util.collections.BlockKey


    static {
        registerBallast(Blocks.gravel, 0);
    }

    public static void registerBallast(Block block, int metadata) {
        ballastRegistry.add(new BlockKey(block, metadata));
    }
View Full Code Here


        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;
    }
View Full Code Here

    public static void addMineableBlock(Block block) {
        addMineableBlock(block, -1);
    }

    public static void addMineableBlock(Block block, int meta) {
        mineableBlocks.add(new BlockKey(block, meta));
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.common.util.collections.BlockKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.