Class NestedTableEntry<T>
- java.lang.Object
-
- org.spongepowered.api.util.weighted.TableEntry<T>
-
- org.spongepowered.api.util.weighted.NestedTableEntry<T>
-
- Type Parameters:
T
- The entry type
public class NestedTableEntry<T> extends TableEntry<T>
Represents aRandomObjectTable
which is nested inside the entry of another table.
-
-
Constructor Summary
Constructors Constructor Description NestedTableEntry(double weight, RandomObjectTable<T> table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<T>
get(Random rand)
Retrieves entries from the nested table.int
hashCode()
String
toString()
-
Methods inherited from class org.spongepowered.api.util.weighted.TableEntry
weight
-
-
-
-
Constructor Detail
-
NestedTableEntry
public NestedTableEntry(double weight, RandomObjectTable<T> table)
- Parameters:
weight
- The weight to apply to the entrytable
- The table itself
-
-