Class AssemblyTable

java.lang.Object
io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
io.github.mooy1.infinitylib.machines.MenuBlock
io.github.mooy1.infinitylib.machines.CraftingBlock
io.github.addoncommunity.galactifun.base.items.AssemblyTable
All Implemented Interfaces:
io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent, io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute, io.github.thebusybiscuit.slimefun5.core.attributes.Placeable

@ParametersAreNonnullByDefault public final class AssemblyTable extends io.github.mooy1.infinitylib.machines.CraftingBlock implements io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int[]
     
    static final io.github.mooy1.infinitylib.machines.MachineRecipeType
     

    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
    AssemblyTable(io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, org.bukkit.inventory.ItemStack[] recipe, int energy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    craft(org.bukkit.block.Block b, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.entity.Player p)
     
    int
     
    io.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentType
     
    protected void
    onNewInstance(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.block.Block b)
     
    protected void
    onSuccessfulCraft(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack toOutput)
     
    protected void
    setup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset preset)
     

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

    addRecipe, addRecipesFrom, getInputSlots, getInputSlots, getOutput, getOutputSlots, layout

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

    getTransportSlots, onBreak, 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 Object

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

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

    addCharge, getCharge, getCharge, isChargeable, removeCharge, setCharge

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

    getId

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

    useVanillaBlockBreaking
  • Field Details

    • INPUT_SLOTS

      public static final int[] INPUT_SLOTS
    • TYPE

      public static final io.github.mooy1.infinitylib.machines.MachineRecipeType TYPE
  • Constructor Details

    • AssemblyTable

      public AssemblyTable(io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, org.bukkit.inventory.ItemStack[] recipe, int energy)
  • Method Details

    • setup

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

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

      protected void craft(org.bukkit.block.Block b, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.entity.Player p)
      Overrides:
      craft in class io.github.mooy1.infinitylib.machines.CraftingBlock
    • onSuccessfulCraft

      protected void onSuccessfulCraft(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack toOutput)
      Overrides:
      onSuccessfulCraft in class io.github.mooy1.infinitylib.machines.CraftingBlock
    • getEnergyComponentType

      @Nonnull public io.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentType getEnergyComponentType()
      Specified by:
      getEnergyComponentType in interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
    • getCapacity

      public int getCapacity()
      Specified by:
      getCapacity in interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent