Class Action6
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
ua.mcchickenstudio.opencreative.indev.coding6.Action6
- All Implemented Interfaces:
CodingBlock,ExtensionContent
- Direct Known Subclasses:
NoTargetAction,TargetAction
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Argumentsfinal boolean@NotNull ActionCategoryReturns category of action, that contains information about action: glass pane materials, block materials.@NotNull ActionTypeReturns type of action, that contains information about action: icon material, arguments list.final @NotNull ActionCategoryReturns coding block category of this executor.final WorldEventgetEvent()Returns last world event of executor.final ActionsHandlerReturns current ActionsHandler in action.final @NotNull StringgetID()@NotNull StringReturns localized name of action.final intgetX()Returns X coordinate of coding block's location.final intgetY()Returns Y coordinate of coding block's location.final intgetZ()Returns Z coordinate of coding block's location.final inthashCode()voidinit(@NotNull ActionContext context) final booleanfinal @NotNull Planetplanet()Returns planet, that was associated with executor.voidrun(@NotNull ActionsHandler handler) toString()final @NotNull org.bukkit.Worldworld()Methods inherited from class ua.mcchickenstudio.opencreative.coding.blocks.actions.Action
execute, getArguments, getArgumentsList, getEntitiesByNameOrUUID, getEntity, getEntityByNameOrUUID, getExecutor, getPlanet, getPlayersByNameOrUUID, getTarget, getTargets, getWorld, prepareAndExecute, setEntity, setEvent, setHandler, setVarValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ua.mcchickenstudio.opencreative.coding.ExtensionContent
getDescription, getExtensionId, getName
-
Constructor Details
-
Action6
-
-
Method Details
-
init
-
run
-
getBlockCategory
Returns coding block category of this executor.- Returns:
- category of executor.
-
planet
Returns planet, that was associated with executor.- Returns:
- planet.
-
world
@NotNull public final @NotNull org.bukkit.World world() -
getEvent
Returns last world event of executor.When a new event happens, it will be replaced with a new one.
-
getHandler
Description copied from class:ActionReturns current ActionsHandler in action.- Overrides:
getHandlerin classAction- Returns:
- Handler of this action.
-
isDisabled
public final boolean isDisabled() -
getID
-
getLocaleName
Returns localized name of action.- Returns:
- localized name.
-
getX
public final int getX()Description copied from interface:CodingBlockReturns X coordinate of coding block's location.- Specified by:
getXin interfaceCodingBlock- Overrides:
getXin classAction- Returns:
- X coordinate.
-
getY
public final int getY()Description copied from interface:CodingBlockReturns Y coordinate of coding block's location.- Specified by:
getYin interfaceCodingBlock- Overrides:
getYin classAction- Returns:
- Y coordinate.
-
getZ
public final int getZ()Description copied from interface:CodingBlockReturns Z coordinate of coding block's location.- Specified by:
getZin interfaceCodingBlock- Overrides:
getZin classAction- Returns:
- Z coordinate.
-
hashCode
public final int hashCode() -
toString
-
arguments
-
equals
-
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.
-
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.
-