use of forestry.mail.blocks.BlockRegistryMail in project ForestryMC by ForestryMC.
the class MailJeiPlugin method register.
@Override
public void register(IModRegistry registry) {
if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.MAIL))) {
return;
}
BlockRegistryMail blocks = ModuleMail.getBlocks();
JeiUtil.addDescription(registry, blocks.mailbox, blocks.stampCollector, blocks.tradeStation);
}
use of forestry.mail.blocks.BlockRegistryMail in project ForestryMC by ForestryMC.
the class ModuleMail method doInit.
// TODO: Buildcraft for 1.9
// @Override
// public void registerTriggers() {
// MailTriggers.initialize();
// }
@Override
public void doInit() {
BlockRegistryMail blocks = getBlocks();
blocks.mailbox.init();
blocks.tradeStation.init();
blocks.stampCollector.init();
}
use of forestry.mail.blocks.BlockRegistryMail in project ForestryMC by ForestryMC.
the class ModuleMail method registerItemsAndBlocks.
@Override
public void registerItemsAndBlocks() {
items = new ItemRegistryMail();
blocks = new BlockRegistryMail();
}
use of forestry.mail.blocks.BlockRegistryMail in project ForestryMC by ForestryMC.
the class ModuleMail method registerRecipes.
@Override
public void registerRecipes() {
ItemRegistryCore coreItems = ModuleCore.getItems();
ItemRegistryMail items = getItems();
BlockRegistryMail blocks = getBlocks();
ItemStack stampGlue;
ItemStack letterGlue;
if (ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.APICULTURE))) {
ItemRegistryApiculture beeItems = ModuleApiculture.getItems();
stampGlue = beeItems.honeyDrop.getItemStack();
letterGlue = beeItems.propolis.getWildcard();
} else {
stampGlue = new ItemStack(Items.SLIME_BALL);
letterGlue = new ItemStack(Items.SLIME_BALL);
}
RecipeUtil.addShapelessRecipe("letter", items.letters.getItemStack(), Items.PAPER, letterGlue);
if (Config.craftingStampsEnabled) {
for (EnumStampDefinition stampDefinition : EnumStampDefinition.VALUES) {
if (Config.collectorStamps.contains(stampDefinition.getUid())) {
continue;
}
ItemStack stamps = items.stamps.get(stampDefinition, 9);
RecipeUtil.addRecipe("stamps", stamps, "XXX", "###", "ZZZ", 'X', stampDefinition.getCraftingIngredient(), '#', Items.PAPER, 'Z', stampGlue);
RecipeManagers.carpenterManager.addRecipe(10, Fluids.SEED_OIL.getFluid(300), ItemStack.EMPTY, stamps, "XXX", "###", 'X', stampDefinition.getCraftingIngredient(), '#', Items.PAPER);
}
}
// Recycling
RecipeUtil.addRecipe("letter_recycling", new ItemStack(Items.PAPER), "###", '#', OreDictUtil.EMPTIED_LETTER_ORE_DICT);
// Carpenter
RecipeManagers.carpenterManager.addRecipe(10, new FluidStack(FluidRegistry.WATER, 250), ItemStack.EMPTY, items.letters.getItemStack(), "###", "###", '#', coreItems.woodPulp);
RecipeUtil.addShapelessRecipe("catalogue", items.catalogue.getItemStack(), items.stamps.getWildcard(), new ItemStack(Items.BOOK));
RecipeUtil.addRecipe("mailbox", new ItemStack(blocks.mailbox), " # ", "#Y#", "XXX", '#', "ingotTin", 'X', "chestWood", 'Y', coreItems.sturdyCasing);
RecipeUtil.addRecipe("trade_station", new ItemStack(blocks.tradeStation), "Z#Z", "#Y#", "XWX", '#', coreItems.tubes.get(EnumElectronTube.BRONZE, 1), 'X', "chestWood", 'Y', coreItems.sturdyCasing, 'Z', coreItems.tubes.get(EnumElectronTube.IRON, 1), 'W', ItemCircuitBoard.createCircuitboard(EnumCircuitBoardType.REFINED, null, new ICircuit[] {}));
}
Aggregations