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"));
}
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;
}
}
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;
}
}
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"));
}
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));
}
Aggregations