Class RandomItemsContent.RandomAmountItem

java.lang.Object
net.glowstone.generator.objects.RandomItemsContent.RandomAmountItem
Enclosing class:
RandomItemsContent

public static class RandomItemsContent.RandomAmountItem extends Object
  • 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

      public Collection<org.bukkit.inventory.ItemStack> getItemStacks(Random random)
      Generate a random set of items.
      Parameters:
      random - the PRNG to use
      Returns:
      an immutable collection of randomly-generated items