Class WeightAction
-
- All Implemented Interfaces:
public class WeightAction extends Action
-
-
Constructor Summary
Constructors Constructor Description WeightAction(BaseActionManager manager, ConfigReader action)
-
Method Summary
Modifier and Type Method Description List<Pair<Action, Double>>getActions()doublegetTotalWeight()voidinitActions(@NonNull() BaseActionManager manager, @Nullable() Object actions)ActionTypegetType()booleanisOrder()booleanisEqualWeight()intgetAmount(@NonNull() ActionContext context)-
-
Constructor Detail
-
WeightAction
WeightAction(BaseActionManager manager, ConfigReader action)
-
-
Method Detail
-
getActions
@NonNull() List<Pair<Action, Double>> getActions()
-
getTotalWeight
double getTotalWeight()
-
initActions
void initActions(@NonNull() BaseActionManager manager, @Nullable() Object actions)
-
getType
@NonNull() ActionType getType()
-
isOrder
boolean isOrder()
-
isEqualWeight
boolean isEqualWeight()
-
getAmount
int getAmount(@NonNull() ActionContext context)
-
-
-
-