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
Represents a
RandomObjectTable
which is nested inside the entry of
another table.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
get
(RandomGenerator rand) Retrieves entries from the nested table.Returns the nested tableint
hashCode()
toString()
Methods inherited from class org.spongepowered.api.util.weighted.TableEntry
weight
-
Constructor Details
-
NestedTableEntry
- Parameters:
weight
- The weight to apply to the entrytable
- The table itself
-
-
Method Details
-
get
Retrieves entries from the nested table.- Parameters:
rand
- The random object to use- Returns:
- The retrieved entries
-
getNestedTable
Returns the nested table- Returns:
- The nested table
-
equals
-
hashCode
public int hashCode() -
toString
-