Interface IGuiFactory

All Known Implementing Classes:
GuiFactory

public interface IGuiFactory
Factory for GUI instances.
  • Method Details

    • newGUI

      void newGUI(IPlayer inventoryHolder, @Nullable IPlayer source)
      Creates a new GUI.
      Parameters:
      inventoryHolder - The player for whom to create the inventory.
      source - The IPlayer whose structures will be accessed.

      When this is null (default), the inventory holders own structures will be used.

    • newGUI

      default void newGUI(IPlayer inventoryHolder)