Class SimpleFrame

java.lang.Object
space.maxus.flare.ui.Frame
space.maxus.flare.ui.frames.SimpleFrame
All Implemented Interfaces:
ReactivityProvider

public abstract class SimpleFrame extends Frame
A simple implementation of Frame
  • Field Details

  • Constructor Details

    • SimpleFrame

      protected SimpleFrame()
    • SimpleFrame

      public SimpleFrame(@NotNull @NotNull Dimensions dimensions)
  • Method Details

    • init

      public abstract void init()
      Description copied from class: Frame
      Called once inside the constructor
      Specified by:
      init in class Frame
    • selfInventory

      @NotNull public @NotNull org.bukkit.inventory.Inventory selfInventory()
      Description copied from class: Frame
      Gets the inventory of this frame.
      Specified by:
      selfInventory in class Frame
      Returns:
      the inventory of this frame.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDimensions

      @NotNull public @NotNull Dimensions getDimensions()
      Description copied from class: Frame
      Gets the dimensions of this frame's inventory
      Specified by:
      getDimensions in class Frame
      Returns:
      the dimensions of this frame's inventory
    • getHolder

      @NotNull public @NotNull ReactiveInventoryHolder getHolder()
      Description copied from class: Frame
      Gets the Flare InventoryHolder for this frame
      Specified by:
      getHolder in class Frame
      Returns:
      Flare InventoryHolder
    • setHolder

      public void setHolder(@NotNull @NotNull ReactiveInventoryHolder holder)
      Description copied from class: Frame
      Sets the holder for this frame This is an internal method, it is only used for frame-switching
      Specified by:
      setHolder in class Frame
      Parameters:
      holder - Holder to be set