Class UnlimitedGUIPopulator

java.lang.Object
me.eddie.inventoryguiapi.gui.contents.UnlimitedGUIPopulator
All Implemented Interfaces:
GUIPopulator

public class UnlimitedGUIPopulator extends Object implements GUIPopulator
Responsible for Calculating the positions that GUIElements need to go into in the displayed, size-unlimited GUI and then updating the current inventory state.
  • Constructor Details

    • UnlimitedGUIPopulator

      public UnlimitedGUIPopulator()
  • Method Details

    • populateGUI

      public void populateGUI(GUISession session, org.bukkit.entity.Player viewer, Callback<Void> callback)
      Description copied from interface: GUIPopulator
      Gets, via GUI's contents provider, the items a player should be viewing; figures out what slots they should be displayed in within the inventory; updates the current InventoryState with this and then calls back to the callback.
      Specified by:
      populateGUI in interface GUIPopulator
      Parameters:
      session - The GUISession of the GUI being populated
      viewer - The viewer of the GUISession
      callback - Callback to be called back to on completion