Class SelectionAction
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
ua.mcchickenstudio.opencreative.coding.blocks.actions.selectionactions.SelectionAction
- All Implemented Interfaces:
CodingBlock
- Direct Known Subclasses:
SelectionAddTargetAction,SelectionRemoveTargetAction,SelectionSetTargetAction
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSelectionAction(Executor executor, int x, Arguments args, ActionCategory condition, ActionType conditionType, boolean isOpposed) SelectionAction(Executor executor, int x, Arguments args, Target target) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(org.bukkit.entity.Entity entity) Executes action with specified entity.@NotNull ActionCategoryReturns category of action, that contains information about action: glass pane materials, block materials.protected abstract voidmodifyTargets(List<org.bukkit.entity.Entity> newTarget, Set<org.bukkit.entity.Entity> currentTarget) Methods inherited from class ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
getActionType, getArguments, getArgumentsList, getEntitiesByNameOrUUID, getEntity, getEntityByNameOrUUID, getEvent, getExecutor, getHandler, getPlanet, getPlayersByNameOrUUID, getTarget, getTargets, getWorld, getX, getY, getZ, prepareAndExecute, setEntity, setEvent, setHandler, setVarValue
-
Constructor Details
-
SelectionAction
public SelectionAction(Executor executor, int x, Arguments args, ActionCategory condition, ActionType conditionType, boolean isOpposed) -
SelectionAction
-
-
Method Details
-
execute
protected void execute(org.bukkit.entity.Entity entity) Description copied from class:ActionExecutes action with specified entity. -
modifyTargets
-
getActionCategory
Description copied from class:ActionReturns category of action, that contains information about action: glass pane materials, block materials.- Specified by:
getActionCategoryin classAction- Returns:
- Category of action.
-