mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-03 06:28:53 +00:00
added support for 1.13+
This commit is contained in:
1 parent
04883a7da2
commit
08184b44da
22 files changed
+1133
-1644
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package com.buildersrefuge.utilities.inventory;
|
||||
|
||||
import com.buildersrefuge.utilities.Main;
|
||||
import com.buildersrefuge.utilities.enums.InventoryTypeEnum;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
|
||||
public class UtilitiesInventoryHolder implements InventoryHolder {
|
||||
|
||||
private InventoryTypeEnum type;
|
||||
private Inventory inv;
|
||||
|
||||
public UtilitiesInventoryHolder(InventoryTypeEnum type){
|
||||
this.type = type;
|
||||
inv = Main.main.getServer().createInventory(this, 54);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Inventory getInventory() {
|
||||
return inv;
|
||||
}
|
||||
|
||||
public InventoryTypeEnum getType(){
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user