-
Notifications
You must be signed in to change notification settings - Fork 18
Home
Mister_Obliviate edited this page Apr 13, 2022
·
12 revisions
Welcome to the ObliviateInvs wiki!
Define and initalize inventory API.
public class Test extends JavaPlugin {
public final InventoryAPI inventoryAPI = new InventoryAPI(this);
@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