net.minecraftforge.common
Class DungeonHooks.DungeonLoot
java.lang.Object
net.minecraft.util.WeightedRandomItem
net.minecraftforge.common.DungeonHooks.DungeonLoot
- Enclosing class:
- DungeonHooks
public static class DungeonHooks.DungeonLoot
- extends WeightedRandomItem
DungeonHooks.DungeonLoot
public DungeonHooks.DungeonLoot(int weight,
ItemStack item,
int min,
int max)
- Parameters:
item
- A item stackmin
- Minimum stack size when randomly generatingmax
- Maximum stack size when randomly generating
generateStack
public ItemStack generateStack(Random rand)
- Grabs a ItemStack ready to be added to the dungeon chest,
the stack size will be between minCount and maxCount
- Parameters:
rand
- World gen random number generator
- Returns:
- The ItemStack to be added to the chest
equals
public boolean equals(ItemStack item,
int min,
int max)
equals
public boolean equals(ItemStack item)