All Implemented Interfaces:
Sizeable

public class SynchedGUIPane extends BaseIOGUIPane<SynchedGUIPane>
Can be used to synchronize an IOGUIPane with another SimpleItemGUIPane
  • Constructor Details

    • SynchedGUIPane

      protected SynchedGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize, boolean autoSize, boolean input, boolean output, SimpleItemGUIPane targetPane)
      Creates a new SynchedGUIPane
      Parameters:
      gui - The GUI
      minSize - The minSize
      maxSize - The maxSize
      targetPane - The pane to keep in sync
      autoSize - Whether to autoSize
      input - Whether it should be allowed to input items into the IO-Pane.
      output - Whether it should be allowed to remove items from the IO-Pane.
  • Method Details

    • onItemChange

      public void onItemChange(Vector2d position, org.bukkit.inventory.ItemStack itemStack)
      Description copied from class: BaseIOGUIPane
      Called when an item changes
      Overrides:
      onItemChange in class BaseIOGUIPane<SynchedGUIPane>
      Parameters:
      position - The position of the item that changed
      itemStack - The new ItemStack