-
Notifications
You must be signed in to change notification settings - Fork 18
Home
Obliviated edited this page May 25, 2022
·
12 revisions
Welcome to the ObliviateInvs wiki!
Define and initalize inventory API.
public class Test extends JavaPlugin {
private final InventoryAPI inventoryAPI = new InventoryAPI();
@Override
public void onEnable() {
inventoryAPI.init();
}
}
Create your GUI class
public class TestGUI extends GUI {
public TestGUI(Player player) {
//id //title //row
super(player, "test-gui", "Test Title", 3);
}
}
Open your GUI to player
new TestGUI(player).open();
You've completed basic pieces! Visit other wiki pages.
https://github.com/Obliviated/ObliviateInvs/wiki/Icons
https://github.com/Obliviated/ObliviateInvs/wiki/Advanced-Slots