Class Cycle
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.executors.Executor
ua.mcchickenstudio.opencreative.coding.blocks.executors.other.NameableExecutor
ua.mcchickenstudio.opencreative.coding.blocks.executors.other.Cycle
- All Implemented Interfaces:
CodingBlock,ExtensionContent
Cycle
This class represents cycle, that executes actions after passing a time, like timer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns description of extension content.@NotNull StringReturns lower-cased simple id of extension.@NotNull StringgetName()Returns name of extension content.booleanvoidrun(@NotNull WorldEvent event) Checks executor, executes actions and sends information about executor.voidsetRepeatTime(int repeatTime) voidstop()Methods inherited from class ua.mcchickenstudio.opencreative.coding.blocks.executors.other.NameableExecutor
getCallName, setCallNameMethods inherited from class ua.mcchickenstudio.opencreative.coding.blocks.executors.Executor
decreaseCall, equals, executeActions, getActions, getBlockCategory, getEvent, getHandler, getID, getLastCalls, getLocaleName, getPlanet, getX, getY, getZ, hashCode, increaseCall, init, isDebug, isDisabled, setActions, setDebug, toString
-
Constructor Details
-
Cycle
public Cycle()
-
-
Method Details
-
setRepeatTime
public void setRepeatTime(int repeatTime) -
run
Description copied from class:ExecutorChecks executor, executes actions and sends information about executor. -
stop
public void stop() -
isEnabled
public boolean isEnabled() -
getName
Description copied from interface:ExtensionContentReturns name of extension content. Will be displayed in list of extension content.- Returns:
- name of content.
-
getExtensionId
Description copied from interface:ExtensionContentReturns lower-cased simple id of extension. Will be used to identify author of content.ID "default" is reserved for OpenCreative+ developers.
- Returns:
- id of extension.
-
getDescription
Description copied from interface:ExtensionContentReturns description of extension content. Describes purpose of new additional content.- Returns:
- description of content.
-