Open BluuKiwi opened 4 years ago
Maybe a 30 min video tutorial that covers all you need to know? This would really help.
@TrashToggled What do you mean by context based? You mean opening the inventory with data from outside? For example a UI that requires data from a player?
If that's the case you could just write something like this:
public class AllTasksMenu implements InventoryProvider {
public SmartInventory INVENTORY;
public AllTasksMenu() {
INVENTORY = SmartInventory.builder()
.id("all-tasks")
.provider(this)
.manager(Main.getInventoryManager())
.size(6, 9)
.title("§9§lAll tasks")
.build();
}
@Override
public void init(Player player, InventoryContents contents) {
}
@Override
public void update(Player player, InventoryContents contents) {
}
}
This is a basic principle of Java so the owner is not going to explain every use-case, even if a context-based example couldn't hurt I guess @MinusKube
There are not enough examples.
Please add some more examples to the documentation. As of right now, I am confused on how to make context-based inventories. Everything in the examples seems to be static and global.
Whenever I try to make a new instance of an inventory, it throws even more errors.
Please add more to the documentation on gitbook. There are a few examples that don't explore much other than basic inventory creation.