Class AdvancedCargoOutputNode

All Implemented Interfaces:
Placeable, CargoNode

public class AdvancedCargoOutputNode extends SimpleSlimefunItem<BlockPlaceHandler>
The AdvancedCargoOutputNode is the advanced version of the CargoOutputNode. It comes with the option to filter items.
Author:
TheBusyBiscuit
  • Field Details

  • Constructor Details

    • AdvancedCargoOutputNode

      @ParametersAreNonnullByDefault public AdvancedCargoOutputNode(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
  • Method Details

    • getBorder

      protected int[] getBorder()
    • hasItemFilter

      public boolean hasItemFilter()
      Description copied from interface: CargoNode
      This returns whether this CargoNode has item filtering capabilities.
      Returns:
      Whether this CargoNode can filter items
    • onPlace

      protected void onPlace(org.bukkit.event.block.BlockPlaceEvent e)
    • createBorder

      protected void createBorder(BlockMenuPreset preset)
    • updateBlockMenu

      protected void updateBlockMenu(BlockMenu menu, org.bukkit.block.Block b)
    • markDirty

      protected void markDirty(@Nonnull org.bukkit.Location loc)
    • getItemHandler

      public BlockPlaceHandler getItemHandler()
      Description copied from class: SimpleSlimefunItem
      This returns the ItemHandler that will be added to this SlimefunItem.
      Specified by:
      getItemHandler in class SimpleSlimefunItem<BlockPlaceHandler>
      Returns:
      The ItemHandler that should be added to this SlimefunItem
    • 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: CargoNode
      This returns the selected channel for the given Block.
      Specified by:
      getSelectedChannel in interface CargoNode
      Parameters:
      b - The Block
      Returns:
      The channel which this CargoNode is currently on