Skip to content

Commit

Permalink
+ItemMaterialSelector (static build method can be used anywhere)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjoismysign committed Dec 1, 2022
1 parent 05839ee commit b791561
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<Material> {

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());
}
}

0 comments on commit b791561

Please sign in to comment.