Class UnlimitedGUIPopulator
java.lang.Object
me.eddie.inventoryguiapi.gui.contents.UnlimitedGUIPopulator
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpopulateGUI(GUISession session, org.bukkit.entity.Player viewer, Callback<Void> callback) 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.
-
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:GUIPopulatorGets, 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:
populateGUIin interfaceGUIPopulator- Parameters:
session- The GUISession of the GUI being populatedviewer- The viewer of the GUISessioncallback- Callback to be called back to on completion
-