Class CargoInputNode
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<BlockPlaceHandler>
io.github.thebusybiscuit.slimefun4.implementation.items.cargo.CargoInputNode
-
Field Summary
FieldsFields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionCargoInputNode(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe, org.bukkit.inventory.ItemStack recipeOutput) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddChannelSelector(org.bukkit.block.Block b, BlockMenu menu, int slotPrev, int slotCurrent, int slotNext) protected voidcreateBorder(BlockMenuPreset preset) protected int[]This returns theItemHandlerthat will be added to thisSlimefunItem.intgetSelectedChannel(org.bukkit.block.Block b) This returns the selected channel for the givenBlock.booleanThis returns whether thisCargoNodehas item filtering capabilities.protected voidmarkDirty(org.bukkit.Location loc) protected voidonPlace(org.bukkit.event.block.BlockPlaceEvent e) protected voidupdateBlockMenu(BlockMenu menu, org.bukkit.block.Block b) Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegisterMethods 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, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, loadDataByDefault, postRegister, 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
-
Field Details
-
SLOTS
protected static final int[] SLOTS -
FREQUENCY
- See Also:
-
-
Constructor Details
-
CargoInputNode
@ParametersAreNonnullByDefault public CargoInputNode(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe, org.bukkit.inventory.ItemStack recipeOutput)
-
-
Method Details
-
getBorder
protected int[] getBorder() -
onPlace
protected void onPlace(org.bukkit.event.block.BlockPlaceEvent e) -
updateBlockMenu
-
hasItemFilter
public boolean hasItemFilter()Description copied from interface:CargoNodeThis returns whether thisCargoNodehas item filtering capabilities.- Returns:
- Whether this
CargoNodecan filter items
-
createBorder
-
markDirty
protected void markDirty(@Nonnull org.bukkit.Location loc) -
getItemHandler
Description copied from class:SimpleSlimefunItemThis returns theItemHandlerthat will be added to thisSlimefunItem.- Specified by:
getItemHandlerin classSimpleSlimefunItem<BlockPlaceHandler>- Returns:
- The
ItemHandlerthat should be added to thisSlimefunItem
-
addChannelSelector
@ParametersAreNonnullByDefault protected void addChannelSelector(org.bukkit.block.Block b, BlockMenu menu, int slotPrev, int slotCurrent, int slotNext) -
getSelectedChannel
public int getSelectedChannel(@Nonnull org.bukkit.block.Block b) Description copied from interface:CargoNodeThis returns the selected channel for the givenBlock.- Specified by:
getSelectedChannelin interfaceCargoNode- Parameters:
b- TheBlock- Returns:
- The channel which this
CargoNodeis currently on
-