Class AdvancedCargoOutputNode
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.AdvancedCargoOutputNode
The
AdvancedCargoOutputNode
is the advanced version of the
CargoOutputNode
. It comes with the option to filter items.- Author:
- TheBusyBiscuit
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
-
Constructor Summary
ConstructorDescriptionAdvancedCargoOutputNode
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addChannelSelector
(Block b, BlockMenu menu, int slotPrev, int slotCurrent, int slotNext) protected void
createBorder
(BlockMenuPreset preset) protected int[]
This returns theItemHandler
that will be added to thisSlimefunItem
.int
This returns the selected channel for the givenBlock
.boolean
This returns whether thisCargoNode
has item filtering capabilities.protected void
protected void
protected void
updateBlockMenu
(BlockMenu menu, Block b) Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem
preRegister
Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, callItemHandler, canUse, 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, postRegister, register, sendDeprecationWarning, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, toString, warn
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Field Details
-
SLOTS
protected static final int[] SLOTS -
FREQUENCY
- See Also:
-
-
Constructor Details
-
AdvancedCargoOutputNode
@ParametersAreNonnullByDefault public AdvancedCargoOutputNode(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
getBorder
protected int[] getBorder() -
hasItemFilter
public boolean hasItemFilter()Description copied from interface:CargoNode
This returns whether thisCargoNode
has item filtering capabilities.- Returns:
- Whether this
CargoNode
can filter items
-
onPlace
-
createBorder
-
updateBlockMenu
-
markDirty
-
getItemHandler
Description copied from class:SimpleSlimefunItem
This returns theItemHandler
that will be added to thisSlimefunItem
.- Specified by:
getItemHandler
in classSimpleSlimefunItem<BlockPlaceHandler>
- Returns:
- The
ItemHandler
that should be added to thisSlimefunItem
-
addChannelSelector
-
getSelectedChannel
Description copied from interface:CargoNode
This returns the selected channel for the givenBlock
.- Specified by:
getSelectedChannel
in interfaceCargoNode
- Parameters:
b
- TheBlock
- Returns:
- The channel which this
CargoNode
is currently on
-