From 0604cc4e1dfbf8f85884342f157198e31f47b829 Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Thu, 20 Jul 2023 22:23:23 -0400 Subject: [PATCH] Create inventory handler --- .../inventories/AuctionInventory.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 paper/src/main/java/com/badbones69/crazyauctions/commands/inventories/AuctionInventory.java diff --git a/paper/src/main/java/com/badbones69/crazyauctions/commands/inventories/AuctionInventory.java b/paper/src/main/java/com/badbones69/crazyauctions/commands/inventories/AuctionInventory.java new file mode 100644 index 0000000..a96c988 --- /dev/null +++ b/paper/src/main/java/com/badbones69/crazyauctions/commands/inventories/AuctionInventory.java @@ -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; + } +} \ No newline at end of file