Class WeightAction
-
- All Implemented Interfaces:
public class WeightAction extends Action
-
-
Field Summary
Fields Modifier and Type Field Description public final List<Pair<Action, Double>>
actions
public final String
amountScriptString
public CompiledScript
amountScript
public double
totalWeight
-
Constructor Summary
Constructors Constructor Description WeightAction(BaseActionManager manager, ConfigReader action)
-
Method Summary
Modifier and Type Method Description List<Pair<Action, Double>>
getActions()
String
getAmountScriptString()
CompiledScript
getAmountScript()
double
getTotalWeight()
void
initActions(@NonNull() BaseActionManager manager, @Nullable() Object actions)
ActionType
getType()
boolean
isOrder()
boolean
isEqualWeight()
int
getAmount(@NonNull() BaseActionManager manager, @NonNull() ActionContext context)
-
-
Constructor Detail
-
WeightAction
WeightAction(BaseActionManager manager, ConfigReader action)
-
-
Method Detail
-
getActions
@NonNull() List<Pair<Action, Double>> getActions()
-
getAmountScriptString
@Nullable() String getAmountScriptString()
-
getAmountScript
@Nullable() CompiledScript getAmountScript()
-
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() BaseActionManager manager, @NonNull() ActionContext context)
-
-
-
-