Class NameableExecutor

java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.executors.Executor
ua.mcchickenstudio.opencreative.coding.blocks.executors.other.NameableExecutor
All Implemented Interfaces:
CodingBlock, ExtensionContent
Direct Known Subclasses:
Cycle, Function, Method

public abstract class NameableExecutor extends Executor

NameableExecutor

This class represents an executor, that has name (custom id) to call it with other actions.
  • Constructor Details

    • NameableExecutor

      public NameableExecutor(@NotNull @NotNull String id, @NotNull @NotNull ExecutorCategory category)
  • Method Details

    • setCallName

      public void setCallName(@NotNull @NotNull String name)
      Sets name of executor for calling it.
      Parameters:
      name - new name to call it.
    • getCallName

      @NotNull public final @NotNull String getCallName()
      Returns name of executor for calling it.
      Returns:
      custom id of executor.