Class WrappedActionBlock<T extends CodingBlock>

java.lang.Object
ua.mcchickenstudio.opencreative.indev.blocks.WrappedCodingBlock<T>
ua.mcchickenstudio.opencreative.indev.blocks.WrappedActionBlock<T>
Type Parameters:
T -
All Implemented Interfaces:
org.bukkit.configuration.serialization.ConfigurationSerializable
Direct Known Subclasses:
WrappedAction, WrappedCondition, WrappedMultiAction

public abstract class WrappedActionBlock<T extends CodingBlock> extends WrappedCodingBlock<T>

WrappedActionBlock

This class represents an action metadata provider for any action block, like ActionBlock, MultiActionBlock, ConditionBlock. It stores target, arguments and coding block coordinates in developers world from WrappedCodingBlock.
See Also:
  • Field Details

    • target

      @NotNull protected final @NotNull Target target
    • arguments

      @NotNull protected final @NotNull Arguments arguments
  • Constructor Details

    • WrappedActionBlock

      public WrappedActionBlock(@NotNull T codingBlock, @NotNull @NotNull Target target, @NotNull @NotNull Arguments arguments, int x, int y, int z)
  • Method Details

    • getTarget

      @NotNull public @NotNull Target getTarget()
    • getArguments

      @NotNull public @NotNull Arguments getArguments()
    • execute

      public abstract void execute(@Nullable @Nullable org.bukkit.entity.Entity target, @NotNull @NotNull ActionsHandler actionsHandler)