T
- The entry typepublic class LootTable<T> extends Object
Modifier and Type | Method and Description |
---|---|
void |
addAll(LootTable<T> other)
Adds all tables from the given
LootTable to this LootTable's pool. |
void |
addTable(RandomObjectTable<T> table)
Adds a table to the pool.
|
void |
clearPool()
Clears all tables from the pool.
|
boolean |
equals(Object o) |
List<T> |
get(Random rand)
Gets a List of objects as retrieved from all pools.
|
List<RandomObjectTable<T>> |
getTables()
Gets all tables in the pool.
|
int |
hashCode() |
boolean |
removeTable(RandomObjectTable<T> table)
Removes a table from the pool.
|
String |
toString() |
public LootTable()
LootTable
.public void addTable(RandomObjectTable<T> table)
table
- The new tablepublic void addAll(LootTable<T> other)
LootTable
to this LootTable's pool.other
- The other loot tablepublic boolean removeTable(RandomObjectTable<T> table)
table
- The table to removepublic List<RandomObjectTable<T>> getTables()
public void clearPool()
public List<T> get(Random rand)
rand
- The random object to use