Search in sources :

Example 1 with BlockRegistryWorktable

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");
}
Also used : BlockRegistryWorktable(forestry.worktable.blocks.BlockRegistryWorktable)

Example 2 with BlockRegistryWorktable

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);
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) BlockRegistryWorktable(forestry.worktable.blocks.BlockRegistryWorktable) ItemStack(net.minecraft.item.ItemStack) IRecipeTransferRegistry(mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)

Example 3 with BlockRegistryWorktable

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();
}
Also used : BlockRegistryWorktable(forestry.worktable.blocks.BlockRegistryWorktable)

Aggregations

BlockRegistryWorktable (forestry.worktable.blocks.BlockRegistryWorktable)3 IRecipeTransferRegistry (mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)1 ItemStack (net.minecraft.item.ItemStack)1 ResourceLocation (net.minecraft.util.ResourceLocation)1