Repository navigation
Examples
Werckut edited this page Jun 25, 2022
·
1 revision
@Override
public void onEnable() {
InventoryRegister.register(new CustomInventoryBuilder()
.setRows(4) // Size in range 1-6.
.setTitle("Custom Inventory")
.setSlots(2,4,6,7,8,9,10,11,12,13) // Set work slots (These slots will execute the logic of "SlotManager").
.setSlotManager(SlotManager.class) // This is "SlotManager".
.build());
}
public void foo(Player player) {
player.openInventory(InventoryRegister.get("Custom Inventory").asInventory());
}@Override
public void onEnable() {
InventoryRegister.register(new CustomInventoryBuilder()
.setType(InventoyType.DROPPER) // setRows - excessive.
.setTitle(ChatColor.WHITE + "\uF808\uE001\uF828Custom Inventory") // Custom texture of inventory (need resourcepack).
.setSlots(4,5,6) // Set work slots (These slots will execute the logic of "SlotManager").
.setSlotManager(SlotManager.class) // This is "SlotManager".
.build());
}
public void foo(Player player) {
player.openInventory(InventoryRegister.get("Custom Inventory").asInventory());
}by Werckut ❤