Class IsGlowingCondition
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
ua.mcchickenstudio.opencreative.coding.blocks.conditions.Condition
ua.mcchickenstudio.opencreative.coding.blocks.conditions.playerconditions.PlayerCondition
ua.mcchickenstudio.opencreative.coding.blocks.conditions.playerconditions.state.IsGlowingCondition
- All Implemented Interfaces:
CodingBlock
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPlayer(@NotNull org.bukkit.entity.Player player) @NotNull ActionTypeReturns type of action, that contains information about action: icon material, arguments list.Methods inherited from class PlayerCondition
check, getActionCategory, getPlayersModifier and TypeMethodDescriptionfinal booleancheck(org.bukkit.entity.Entity entity) @NotNull ActionCategoryReturns category of action, that contains information about action: glass pane materials, block materials.protected List<org.bukkit.entity.Player> getPlayers(List<org.bukkit.entity.Entity> selection) Methods inherited from class Condition
execute, getActions, getElseActions, getEventValue, isOpposed, prepareAndExecuteModifier and TypeMethodDescriptionprotected voidexecute(org.bukkit.entity.Entity entity) Executes action with specified entity.protected @Nullable ObjectgetEventValue(@NotNull Class<? extends EventValue> clazz) booleanfinal voidprepareAndExecute(@NotNull ActionsHandler handler) Prepares action for executing, sets handler and event, and executes action with target.Methods inherited from class Action
getArguments, getArgumentsList, getEntitiesByNameOrUUID, getEntity, getEntityByNameOrUUID, getEvent, getExecutor, getHandler, getPlanet, getPlayersByNameOrUUID, getTarget, getTargets, getWorld, getX, getY, getZ, setEntity, setEvent, setHandler, setVarValueModifier and TypeMethodDescriptionprotected final @NotNull ArgumentsReturns arguments of action.Returns a list of all arguments in this action.protected Set<org.bukkit.entity.Entity> Returns a set of entities whose name or UUID is equal to specified text.org.bukkit.entity.EntityReturns involved entity in action from ActionsHandler.protected @Nullable org.bukkit.entity.EntitygetEntityByNameOrUUID(String text) Returns an entity whose name or UUID is equal to specified text.getEvent()Returns last stored event in action.final ExecutorReturns executor, that stores this action.Returns current ActionsHandler in action.protected Planetprotected Set<org.bukkit.entity.Player> getPlayersByNameOrUUID(String text) Returns enum of target.protected List<org.bukkit.entity.Entity> Returns list of entities that will execute this action.protected org.bukkit.WorldgetWorld()Returns planet's world, where action will be executed.intgetX()Returns X coordinate of coding block's location.intgetY()Returns Y coordinate of coding block's location.intgetZ()Returns Z coordinate of coding block's location.voidsetEntity(org.bukkit.entity.Entity entity) Sets entity involved in executor's event.voidsetEvent(WorldEvent event) Sets new event.voidsetHandler(ActionsHandler handler) Sets new ActionsHandler.protected voidsetVarValue(@Nullable VariableLink link, Object value) Sets value in local, global or saved variable in world.
-
Constructor Details
-
IsGlowingCondition
public IsGlowingCondition(Executor executor, Target target, int x, Arguments args, List<Action> actions, List<Action> reactions, boolean isOpposed) Creates an Condition with linked executor and specified arguments.- Parameters:
executor- Executor where this action will be added.x- X from Action's block location in developers planet.args- List of arguments for action.
-
-
Method Details
-
checkPlayer
public boolean checkPlayer(@NotNull @NotNull org.bukkit.entity.Player player) - Specified by:
checkPlayerin classPlayerCondition
-
getActionType
Description copied from class:ActionReturns type of action, that contains information about action: icon material, arguments list.- Specified by:
getActionTypein classAction- Returns:
- Type of action.
-