From b79156153b154bd748ad82a2a9c1bc5036017590 Mon Sep 17 00:00:00 2001 From: lbenav8095 Date: Wed, 30 Nov 2022 18:49:16 -0600 Subject: [PATCH] +ItemMaterialSelector (static build method can be used anywhere) --- .../inventory/ItemMaterialSelector.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/us/mytheria/bloblib/entities/inventory/ItemMaterialSelector.java diff --git a/src/main/java/us/mytheria/bloblib/entities/inventory/ItemMaterialSelector.java b/src/main/java/us/mytheria/bloblib/entities/inventory/ItemMaterialSelector.java new file mode 100644 index 00000000..b8972589 --- /dev/null +++ b/src/main/java/us/mytheria/bloblib/entities/inventory/ItemMaterialSelector.java @@ -0,0 +1,19 @@ +package us.mytheria.bloblib.entities.inventory; + +import org.bukkit.Material; +import us.mytheria.bloblib.BlobLib; + +import java.util.UUID; + +public class ItemMaterialSelector extends VariableSelector { + + public static ItemMaterialSelector build(UUID builderId) { + BlobInventory inventory = VariableSelector.DEFAULT(); + return new ItemMaterialSelector(inventory, builderId); + } + + private ItemMaterialSelector(BlobInventory blobInventory, UUID builderId) { + super(blobInventory, builderId, "MATERIAL", + BlobLib.getInstance().getFillerManager().getItemMaterialFiller()); + } +}