-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ItemMaterialSelector (static build method can be used anywhere)
- Loading branch information
1 parent
05839ee
commit b791561
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/java/us/mytheria/bloblib/entities/inventory/ItemMaterialSelector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
} |