Create inventory handler

This commit is contained in:
Ryder Belserion 2023-07-20 22:23:23 -04:00
parent a66c036289
commit 0604cc4e1d
No known key found for this signature in database
GPG Key ID: 6F86975AD74B46E5

View File

@ -0,0 +1,23 @@
package com.badbones69.crazyauctions.commands.inventories;
import com.badbones69.crazyauctions.CrazyAuctions;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;
public class AuctionInventory implements InventoryHolder {
private final CrazyAuctions plugin = JavaPlugin.getPlugin(CrazyAuctions.class);
private final Inventory inventory;
public AuctionInventory() {
this.inventory = plugin.getServer().createInventory(this, 9);
}
@Override
public @NotNull Inventory getInventory() {
return this.inventory;
}
}