Search in sources :

Example 1 with SCManualPage

use of net.geforcemods.securitycraft.misc.SCManualPage in project SecurityCraft by Geforce132.

the class RegistrationHandler method registerBlock.

private static void registerBlock(Block block, Class<? extends ItemBlock> itemClass, Object... constructorParams) {
    GameRegistry.registerBlock(block, itemClass, block.getUnlocalizedName().substring(5), constructorParams);
    SecurityCraft.instance.manualPages.add(new SCManualPage(Item.getItemFromBlock(block), "help." + block.getUnlocalizedName().substring(5) + ".info"));
}
Also used : SCManualPage(net.geforcemods.securitycraft.misc.SCManualPage)

Example 2 with SCManualPage

use of net.geforcemods.securitycraft.misc.SCManualPage in project SecurityCraft by Geforce132.

the class RegistrationHandler method registerReinforcedBlock.

private static void registerReinforcedBlock(Block block) {
    GameRegistry.registerBlock(block, block.getUnlocalizedName().substring(5));
    if (!hasReinforcedPage) {
        SecurityCraft.instance.manualPages.add(new SCManualPage(Item.getItemFromBlock(block), "help.reinforced.info"));
        hasReinforcedPage = true;
    }
}
Also used : SCManualPage(net.geforcemods.securitycraft.misc.SCManualPage)

Example 3 with SCManualPage

use of net.geforcemods.securitycraft.misc.SCManualPage in project SecurityCraft by Geforce132.

the class RegistrationHandler method registerReinforcedBlock.

private static void registerReinforcedBlock(Block block, Class<? extends ItemBlock> itemClass) {
    GameRegistry.registerBlock(block, itemClass, block.getUnlocalizedName().substring(5));
    if (!hasReinforcedPage) {
        SecurityCraft.instance.manualPages.add(new SCManualPage(Item.getItemFromBlock(block), "help.reinforced.info"));
        hasReinforcedPage = true;
    }
}
Also used : SCManualPage(net.geforcemods.securitycraft.misc.SCManualPage)

Example 4 with SCManualPage

use of net.geforcemods.securitycraft.misc.SCManualPage in project SecurityCraft by Geforce132.

the class RegistrationHandler method registerBlock.

private static void registerBlock(Block block, Class<? extends ItemBlock> itemClass) {
    GameRegistry.registerBlock(block, itemClass, block.getUnlocalizedName().substring(5));
    SecurityCraft.instance.manualPages.add(new SCManualPage(Item.getItemFromBlock(block), "help." + block.getUnlocalizedName().substring(5) + ".info"));
}
Also used : SCManualPage(net.geforcemods.securitycraft.misc.SCManualPage)

Example 5 with SCManualPage

use of net.geforcemods.securitycraft.misc.SCManualPage in project SecurityCraft by Geforce132.

the class RegistrationHandler method registerItem.

/**
 * Registers the given item with GameData.register_implItem(), and adds the help info for the item to the SecurityCraft manual item.
 * Additionally, a configuration value can be set to have this item's recipe show as disabled in the manual.
 */
private static void registerItem(Item item, boolean configValue) {
    GameRegistry.registerItem(item, item.getUnlocalizedName().substring(5));
    SecurityCraft.instance.manualPages.add(new SCManualPage(item, "help." + item.getUnlocalizedName().substring(5) + ".info", configValue));
}
Also used : SCManualPage(net.geforcemods.securitycraft.misc.SCManualPage)

Aggregations

SCManualPage (net.geforcemods.securitycraft.misc.SCManualPage)15 Ingredient (net.minecraft.item.crafting.Ingredient)1