Class PlayerCondition
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
- All Implemented Interfaces:
CodingBlock
- Direct Known Subclasses:
CanSeeEntitiesCondition,CanSeePlayersCondition,EqualsClickedSlotCondition,EqualsGameModeCondition,HasItemCondition,HasItemCooldownCondition,HasItemInAmountCondition,HasItemInHandCondition,HasPotionEffectsCondition,HasResourcePackCondition,HasSavedPurchaseCondition,HasWorldPermissionCondition,IsAllowedFlightCondition,IsBlockEqualsCondition,IsBlockingCondition,IsClickedInOwnInventoryCondition,IsCurrentBossBarCondition,IsCurrentScoreboardCondition,IsCurrentSlotEqualsCondition,IsFlyingCondition,IsGlidingCondition,IsGlowingCondition,IsInLava,IsInPowderedSnow,IsInRain,IsInsideVehicle,IsInventoryFullCondition,IsInventoryNameEqualsCondition,IsItemEqualsCondition,IsLikedWorldCondition,IsLookingAtBlockCondition,IsNearLocationCondition,IsOnGroundCondition,IsPlayerDead,IsPlayerInTeam,IsSneakingCondition,IsSprintingCondition,IsStandingOnBlockCondition,IsTimeRelativeCondition,IsUnderWater,IsWearingItemCondition,MessageEqualsCondition,PlayerInAreaCondition,PlayerNameEqualsCondition
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleancheck(org.bukkit.entity.Entity entity) abstract booleancheckPlayer(@NotNull org.bukkit.entity.Player player) @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 ua.mcchickenstudio.opencreative.coding.blocks.conditions.Condition
execute, getActions, getElseActions, getEventValue, isOpposed, prepareAndExecuteMethods 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, setEntity, setEvent, setHandler, setVarValue
-
Constructor Details
-
PlayerCondition
public PlayerCondition(Executor executor, Target target, int x, Arguments args, List<Action> actions, List<Action> reactions, boolean isOpposed) Creates a 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
-
check
public final boolean check(org.bukkit.entity.Entity entity) -
checkPlayer
public abstract boolean checkPlayer(@NotNull @NotNull org.bukkit.entity.Player player) -
getActionCategory
Description copied from class:ActionReturns category of action, that contains information about action: glass pane materials, block materials.- Specified by:
getActionCategoryin classCondition- Returns:
- Category of action.
-
getPlayers
-