Skip to content
Hamza Coşkun edited this page Dec 21, 2022 · 12 revisions

Welcome to the ObliviateInvs wiki!

Beggining to using ObliviateInvs

Step 1

Initalize the inventory API.

public class Test extends JavaPlugin {

	@Override
	public void onEnable() {
		new InventoryAPI(this).init();
	}

}

Step 2

Create your GUI class.

public class TestGui extends Gui {
	
	public TestGui(Player player) {
		super(player, "test-gui", "Test Title", 3);
		     //player, id, title, row
	}

        @Override
	public void onOpen(InventoryOpenEvent event) {
		addItem(0, new Icon(Material.STONE)));
		       //slot
	}
}

Step 3

Open your GUI to player.

new TestGui(player).open();

You've completed basic pieces! Visit other wiki pages.

Icon Usage

https://github.com/Obliviated/ObliviateInvs/wiki/Icons

Advanced Slots

https://github.com/Obliviated/ObliviateInvs/wiki/Advanced-Slots

Pagination

https://github.com/Obliviated/ObliviateInvs/wiki/Pagination

Clone this wiki locally