use of forestry.worktable.blocks.BlockRegistryWorktable in project ForestryMC by ForestryMC.
the class ModuleWorktable method registerRecipes.
@Override
public void registerRecipes() {
BlockRegistryWorktable blocks = getBlocks();
RecipeUtil.addRecipe("worktable", blocks.worktable, "B", "W", "C", 'B', Items.BOOK, 'W', "craftingTableWood", 'C', "chestWood");
}
use of forestry.worktable.blocks.BlockRegistryWorktable in project ForestryMC by ForestryMC.
the class WorktableJeiPlugin method register.
@Override
public void register(IModRegistry registry) {
if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.WORKTABLE))) {
return;
}
BlockRegistryWorktable blocks = ModuleWorktable.getBlocks();
Preconditions.checkNotNull(blocks);
registry.addRecipeCatalyst(new ItemStack(blocks.worktable), VanillaRecipeCategoryUid.CRAFTING);
IRecipeTransferRegistry transferRegistry = registry.getRecipeTransferRegistry();
transferRegistry.addRecipeTransferHandler(new WorktableRecipeTransferHandler(), VanillaRecipeCategoryUid.CRAFTING);
JeiUtil.addDescription(registry, blocks.worktable);
}
use of forestry.worktable.blocks.BlockRegistryWorktable in project ForestryMC by ForestryMC.
the class ModuleWorktable method doInit.
@Override
public void doInit() {
BlockRegistryWorktable blocks = getBlocks();
blocks.worktable.init();
}
Aggregations