Class PipeOutput

java.lang.Object
io.github.apfelcreme.Pipes.Pipe.AbstractPipePart
io.github.apfelcreme.Pipes.Pipe.PipeOutput

public class PipeOutput extends AbstractPipePart
  • Field Details

    • GUI_SETUP

      public static final String[] GUI_SETUP
  • Constructor Details

    • PipeOutput

      public PipeOutput(org.bukkit.block.BlockState state)
  • Method Details

    • getTargetHolder

      public org.bukkit.inventory.InventoryHolder getTargetHolder()
      returns the InventoryHolder
      Returns:
      the InventoryHolder
    • getTargetLocation

      public SimpleLocation getTargetLocation()
    • getFacing

      public org.bukkit.block.BlockFace getFacing()
    • getFilterItems

      public List<org.bukkit.inventory.ItemStack> getFilterItems()
      returns the list of items in the dropper
      Returns:
      the list of items in the dropper
    • accepts

      public PipeOutput.AcceptResult accepts(PipeInput input, org.bukkit.inventory.ItemStack itemStack)
      Check whether or not this output can accept that item stack
      Parameters:
      input - The input that tries to move the item
      itemStack - The item to check
      Returns:
      A result that represents why or why not the item is accepted by this output
    • matchesFilter

      public boolean matchesFilter(org.bukkit.inventory.ItemStack filter, org.bukkit.inventory.ItemStack item)
      Check whether or not an item stack matches the filter of this output
      Parameters:
      filter - The filter item to match against
      item - The item stack to check
      Returns:
      true if the filter is similar; false if not
    • getGuiSetup

      public String[] getGuiSetup()
      Description copied from class: AbstractPipePart
      Get the setup of the GUI with the character 'i' for the block's inventory, 's' and 'z' for settings, 'c' for the copy book
      Specified by:
      getGuiSetup in class AbstractPipePart
      Returns:
      The setup for the GUI
    • getOptions

      protected AbstractPipePart.Option<?>[] getOptions()
      Description copied from class: AbstractPipePart
      Get all possible options
      Specified by:
      getOptions in class AbstractPipePart
      Returns:
      All possible options of this part
    • getAvailableOption

      protected AbstractPipePart.Option<?> getAvailableOption(String name)
      Description copied from class: AbstractPipePart
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Overrides:
      getAvailableOption in class AbstractPipePart
      Parameters:
      name - The name of the option to get
      Returns:
      the enum constant with the specified name
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractPipePart
    • toString

      public String toString()
      Overrides:
      toString in class AbstractPipePart