Class PlayerAction
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
ua.mcchickenstudio.opencreative.coding.blocks.actions.playeractions.PlayerAction
- All Implemented Interfaces:
CodingBlock
- Direct Known Subclasses:
ApplyMendingAction,ClearChatAction,ClearInventoryAction,ClearPotionEffectsAction,CloseInventoryAction,DamagePlayerAction,DiscoverRecipeAction,FireworkBoostAction,GetItemAction,GiveItemsAction,GivePotionEffectsAction,GiveRandomItemAction,HideBossBarAction,HideEntityAction,HidePlayerAction,HideScoreboardAction,KickPlayerAction,LaunchHorizontalAction,LaunchToLocationAction,LaunchVerticalAction,OpenBookAction,OpenContainerAction,OpenInventoryAction,OpenSignAction,PlayerReleaseShouldersAction,PlayerSetMaximumAirAction,PlayerSetRemainingAirAction,PlayerSetTimeAction,PlayerSetWeatherAction,PlayerSetWorldBorderAction,PlaySoundAction,RemoveItemsAction,RemovePotionEffectsAction,RequestPurchaseAction,RestoreInventoryAction,SaddleEntityAction,SaveInventoryAction,SendDialogAction,SendMessageAction,SendSignChangeAction,SetArmorAction,SetArrowsInBodyAction,SetBeeStingerCooldownAction,SetBeeStingersInBodyAction,SetCanPickupItem,SetCompassTarget,SetCursorItemAction,SetExpAction,SetExpLevelAction,SetFallDistanceAction,SetFireTicksAction,SetFlyingAction,SetFlyingFallDamageAction,SetFlySpeedAction,SetFreezeTicksAction,SetGameModeAction,SetGlidingAction,SetGlowingAction,SetHealthAction,SetHotBarAction,SetHungerAction,SetItemCooldownAction,SetItemInHandAction,SetItemInSlotAction,SetItemsAction,SetLastDamageAction,SetMaxHealthAction,SetMaxNoDamageTicksAction,SetMenuItemAction,SetMenuItemsRowAction,SetMenuSizeAction,SetMenuTitleAction,SetNoDamageTicksAction,SetResourcePackAction,SetShieldBlockingDelay,SetSimulationDistanceAction,SetSlotAction,SetSneakingAction,SetSpectatorTargetAction,SetSprintingAction,SetTotalExpAction,SetViewDistanceAction,SetVisualFireAction,SetWalkSpeedAction,ShowActionbarAction,ShowAdvancementAction,ShowBossBarAction,ShowDemoScreenAction,ShowElderGuardianAction,ShowEntityAction,ShowParticleAction,ShowPhantomBlockAction,ShowPlayerAction,ShowScoreboardAction,ShowTitleAction,ShowWinScreenAction,StopSoundsAction,SwingHandAction,TeleportPlayerAction,UndiscoverRecipeAction
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidexecute(org.bukkit.entity.Entity entity) Executes action with specified entity.abstract voidexecutePlayer(@NotNull org.bukkit.entity.Player player) @NotNull ActionCategoryReturns category of action, that contains information about action: glass pane materials, block materials.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
-
PlayerAction
-
-
Method Details
-
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.
-
execute
public final void execute(org.bukkit.entity.Entity entity) Description copied from class:ActionExecutes action with specified entity. -
executePlayer
public abstract void executePlayer(@NotNull @NotNull org.bukkit.entity.Player player)
-