Class MenuBlock
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
net.guizhanss.guizhanlib.slimefun.machines.MenuBlock
- All Implemented Interfaces:
io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
- Direct Known Subclasses:
TickingMenuBlock
@ParametersAreNonnullByDefault
public abstract class MenuBlock
extends io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
- Author:
- Mooy1, ybw0014
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMenuBlock(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe) Constructor ofMenuBlock. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract int[]protected int[]getInputSlots(me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu menu, ItemStack item) protected abstract int[]protected final int[]getTransportSlots(me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu menu, me.mrCookieSlime.Slimefun.api.item_transport.ItemTransportFlow flow, ItemStack item) protected voidonBreak(BlockBreakEvent e, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu) protected voidonNewInstance(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, Block b) protected voidonPlace(BlockPlaceEvent e, Block b) final voidprotected abstract voidsetup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset preset) Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, addWikiPage, callItemHandler, canUse, disable, enable, equals, error, getAddon, getBlockTicker, getById, getByItem, getDrops, getDrops, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, loadDataByDefault, preRegister, register, sendDeprecationWarning, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, toString, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
MenuBlock
@ParametersAreNonnullByDefault protected MenuBlock(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe) Constructor ofMenuBlock. Add events on break and place
-
-
Method Details
-
postRegister
public final void postRegister()- Overrides:
postRegisterin classio.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
-
setup
@ParametersAreNonnullByDefault protected abstract void setup(me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset preset) -
getTransportSlots
@ParametersAreNonnullByDefault @Nonnull protected final int[] getTransportSlots(me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu menu, me.mrCookieSlime.Slimefun.api.item_transport.ItemTransportFlow flow, ItemStack item) -
getInputSlots
@ParametersAreNonnullByDefault protected int[] getInputSlots(me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu menu, ItemStack item) -
getInputSlots
protected abstract int[] getInputSlots() -
getOutputSlots
protected abstract int[] getOutputSlots() -
onNewInstance
@ParametersAreNonnullByDefault protected void onNewInstance(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu, Block b) -
onBreak
@ParametersAreNonnullByDefault protected void onBreak(BlockBreakEvent e, me.mrCookieSlime.Slimefun.api.inventory.BlockMenu menu) -
onPlace
-