Package net.glowstone.generator.objects
Class RandomItemsContent.RandomAmountItem
java.lang.Object
net.glowstone.generator.objects.RandomItemsContent.RandomAmountItem
- Enclosing class:
- RandomItemsContent
-
Constructor Summary
ConstructorDescriptionRandomAmountItem
(org.bukkit.Material type, int minAmount, int maxAmount) RandomAmountItem
(org.bukkit.Material type, int data, int minAmount, int maxAmount) -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.bukkit.inventory.ItemStack>
getItemStacks
(Random random) Generate a random set of items.
-
Constructor Details
-
RandomAmountItem
public RandomAmountItem(org.bukkit.Material type, int minAmount, int maxAmount) -
RandomAmountItem
public RandomAmountItem(org.bukkit.Material type, int data, int minAmount, int maxAmount)
-
-
Method Details
-
getItemStacks
Generate a random set of items.- Parameters:
random
- the PRNG to use- Returns:
- an immutable collection of randomly-generated items
-