java.lang.Object
io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
io.github.mooy1.infinitylib.machines.MenuBlock
io.github.mooy1.infinitylib.machines.CraftingBlock
io.github.sefiraat.slimetinker.items.workstations.workbench.Workbench
All Implemented Interfaces:
io.github.thebusybiscuit.slimefun5.core.attributes.Placeable

public class Workbench extends io.github.mooy1.infinitylib.machines.CraftingBlock
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final int
     
    protected static final int
     
    static final io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType
     

    Fields inherited from class io.github.mooy1.infinitylib.machines.CraftingBlock

    CLICK_TO_CRAFT, layout

    Fields inherited from class io.github.mooy1.infinitylib.machines.MenuBlock

    BACKGROUND_ITEM, IDLE_ITEM, INPUT_BORDER, NO_ENERGY_ITEM, NO_ROOM_ITEM, OUTPUT_BORDER, PROCESSING_ITEM

    Fields inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem

    addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
  • Constructor Summary

    Constructors
    Constructor
    Description
    Workbench(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    onBreak(org.bukkit.event.block.BlockBreakEvent event, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
     
    protected void
    onNewInstance(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.block.Block b)
     
    protected void
    setup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset blockMenuPreset)
     
    void
     

    Methods inherited from class io.github.mooy1.infinitylib.machines.CraftingBlock

    addRecipe, addRecipesFrom, craft, getInputSlots, getInputSlots, getOutput, getOutputSlots, layout, onSuccessfulCraft

    Methods inherited from class io.github.mooy1.infinitylib.machines.MenuBlock

    getTransportSlots, onPlace, postRegister

    Methods inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem

    addItemHandler, addItemSetting, addOfficialWikipage, bakeTranslatedDisplay, callItemHandler, canUse, decorateBakedTemplate, equals, error, getAddon, getBlockTicker, getById, getByItem, getByItem, getDrops, getDrops, getGuideType, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isTicking, isUseableInWorkbench, load, preRegister, register, sendDeprecationWarning, setGuideType, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, setWikiText, toString, warn

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.Placeable

    useVanillaBlockBreaking
  • Field Details

    • TYPE

      public static final io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType TYPE
    • OUTPUT_SLOT

      protected static final int OUTPUT_SLOT
      See Also:
    • CRAFT_BUTTON

      protected static final int CRAFT_BUTTON
      See Also:
  • Constructor Details

    • Workbench

      public Workbench(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
  • Method Details

    • setup

      protected void setup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset blockMenuPreset)
      Overrides:
      setup in class io.github.mooy1.infinitylib.machines.CraftingBlock
    • onBreak

      protected void onBreak(@Nonnull org.bukkit.event.block.BlockBreakEvent event, @Nonnull me.mrCookieSlime.Slimefun.api.inventory.BlockMenu blockMenu)
      Overrides:
      onBreak in class io.github.mooy1.infinitylib.machines.MenuBlock
    • onNewInstance

      protected void onNewInstance(@Nonnull me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, @Nonnull org.bukkit.block.Block b)
      Overrides:
      onNewInstance in class io.github.mooy1.infinitylib.machines.CraftingBlock
    • setupRecipes

      public void setupRecipes()