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

public abstract class Action6 extends Action implements CodingBlock, ExtensionContent
  • Constructor Details

  • Method Details

    • init

      public void init(@NotNull @NotNull ActionContext context)
    • run

      public void run(@NotNull @NotNull ActionsHandler handler)
    • getBlockCategory

      @NotNull public final @NotNull ActionCategory getBlockCategory()
      Returns coding block category of this executor.
      Returns:
      category of executor.
    • planet

      @NotNull public final @NotNull Planet planet()
      Returns planet, that was associated with executor.
      Returns:
      planet.
    • world

      @NotNull public final @NotNull org.bukkit.World world()
    • getEvent

      public final WorldEvent getEvent()
      Returns last world event of executor.

      When a new event happens, it will be replaced with a new one.

      Overrides:
      getEvent in class Action
      Returns:
      last world event.
    • getHandler

      public final ActionsHandler getHandler()
      Description copied from class: Action
      Returns current ActionsHandler in action.
      Overrides:
      getHandler in class Action
      Returns:
      Handler of this action.
    • isDisabled

      public final boolean isDisabled()
    • getID

      @NotNull public final @NotNull String getID()
    • getLocaleName

      @NotNull public @NotNull String getLocaleName()
      Returns localized name of action.
      Returns:
      localized name.
    • getX

      public final int getX()
      Description copied from interface: CodingBlock
      Returns X coordinate of coding block's location.
      Specified by:
      getX in interface CodingBlock
      Overrides:
      getX in class Action
      Returns:
      X coordinate.
    • getY

      public final int getY()
      Description copied from interface: CodingBlock
      Returns Y coordinate of coding block's location.
      Specified by:
      getY in interface CodingBlock
      Overrides:
      getY in class Action
      Returns:
      Y coordinate.
    • getZ

      public final int getZ()
      Description copied from interface: CodingBlock
      Returns Z coordinate of coding block's location.
      Specified by:
      getZ in interface CodingBlock
      Overrides:
      getZ in class Action
      Returns:
      Z coordinate.
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • arguments

      @NotNull public @NotNull Arguments arguments()
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getActionType

      @NotNull public @NotNull ActionType getActionType()
      Description copied from class: Action
      Returns type of action, that contains information about action: icon material, arguments list.
      Specified by:
      getActionType in class Action
      Returns:
      Type of action.
    • getActionCategory

      @NotNull public @NotNull ActionCategory getActionCategory()
      Description copied from class: Action
      Returns category of action, that contains information about action: glass pane materials, block materials.
      Specified by:
      getActionCategory in class Action
      Returns:
      Category of action.