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
FieldsModifier and TypeFieldDescriptionstatic final int[]static final io.github.mooy1.infinitylib.machines.MachineRecipeTypeFields inherited from class io.github.mooy1.infinitylib.machines.CraftingBlock
CLICK_TO_CRAFT, layoutFields inherited from class io.github.mooy1.infinitylib.machines.MenuBlock
BACKGROUND_ITEM, IDLE_ITEM, INPUT_BORDER, NO_ENERGY_ITEM, NO_ROOM_ITEM, OUTPUT_BORDER, PROCESSING_ITEMFields inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionAssemblyTable(io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, org.bukkit.inventory.ItemStack[] recipe, int energy) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcraft(org.bukkit.block.Block b, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.entity.Player p) intio.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentTypeprotected voidonNewInstance(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.block.Block b) protected voidonSuccessfulCraft(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack toOutput) protected voidsetup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset preset) Methods inherited from class io.github.mooy1.infinitylib.machines.CraftingBlock
addRecipe, addRecipesFrom, getInputSlots, getInputSlots, getOutput, getOutputSlots, layoutMethods inherited from class io.github.mooy1.infinitylib.machines.MenuBlock
getTransportSlots, onBreak, onPlace, postRegisterMethods 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, warnMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
addCharge, getCharge, getCharge, isChargeable, removeCharge, setChargeMethods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute
getIdMethods 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:
setupin classio.github.mooy1.infinitylib.machines.CraftingBlock
-
onNewInstance
protected void onNewInstance(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.block.Block b) - Overrides:
onNewInstancein classio.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:
craftin classio.github.mooy1.infinitylib.machines.CraftingBlock
-
onSuccessfulCraft
protected void onSuccessfulCraft(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, org.bukkit.inventory.ItemStack toOutput) - Overrides:
onSuccessfulCraftin classio.github.mooy1.infinitylib.machines.CraftingBlock
-
getEnergyComponentType
@Nonnull public io.github.thebusybiscuit.slimefun5.core.networks.energy.EnergyNetComponentType getEnergyComponentType()- Specified by:
getEnergyComponentTypein interfaceio.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
-
getCapacity
public int getCapacity()- Specified by:
getCapacityin interfaceio.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent
-