Class TableEntry<T>
java.lang.Object
org.spongepowered.api.util.weighted.TableEntry<T>
- Type Parameters:
T
- The entry type
- Direct Known Subclasses:
EmptyObject
,NestedTableEntry
,WeightedObject
An abstract entry which may be contained in any table.
-
Constructor Summary
ModifierConstructorDescriptionprotected
TableEntry
(double weight) Creates a newTableEntry
with the desiredweight
. -
Method Summary
-
Constructor Details
-
TableEntry
protected TableEntry(double weight) Creates a newTableEntry
with the desiredweight
.- Parameters:
weight
- The weight to associate with this entry
-
-
Method Details
-
weight
public double weight()Gets the weight of this entry.- Returns:
- The weight
-