Class GuiFactory

java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.gui.GuiFactory
All Implemented Interfaces:
IGuiFactory

public class GuiFactory extends Object implements IGuiFactory
The implementation of IGuiFactory for the Spigot platform.
  • Method Details

    • newGUI

      public void newGUI(IPlayer inventoryHolder, @Nullable IPlayer source)
      Description copied from interface: IGuiFactory
      Creates a new GUI.
      Specified by:
      newGUI in interface IGuiFactory
      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.