Package de.themoep.inventorygui
Class InventoryGui.InventoryCreator
java.lang.Object
de.themoep.inventorygui.InventoryGui.InventoryCreator
- Enclosing class:
InventoryGui
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Constructor Summary
ConstructorDescriptionInventoryCreator
(InventoryGui.InventoryCreator.CreatorImplementation<org.bukkit.event.inventory.InventoryType> typeCreator, InventoryGui.InventoryCreator.CreatorImplementation<Integer> sizeCreator) A new inventory creator which should be able to create an inventory based on the type and the size. -
Method Summary
Modifier and TypeMethodDescriptionInventoryGui.InventoryCreator.CreatorImplementation
<org.bukkit.event.inventory.InventoryType>
-
Constructor Details
-
InventoryCreator
public InventoryCreator(InventoryGui.InventoryCreator.CreatorImplementation<org.bukkit.event.inventory.InventoryType> typeCreator, InventoryGui.InventoryCreator.CreatorImplementation<Integer> sizeCreator) A new inventory creator which should be able to create an inventory based on the type and the size.
By default the creators are implemented as follows:typeCreator = (gui, who, type) -> plugin.getServer().createInventory(new Holder(gui), type, gui.replaceVars(who, title)); sizeCreator = (gui, who, size) -> plugin.getServer().createInventory(new Holder(gui), size, gui.replaceVars(who, title));
- Parameters:
typeCreator
- The type creator.sizeCreator
- The size creator
-
-
Method Details
-
getTypeCreator
public InventoryGui.InventoryCreator.CreatorImplementation<org.bukkit.event.inventory.InventoryType> getTypeCreator() -
getSizeCreator
-