Class EntityExecutor
java.lang.Object
ua.mcchickenstudio.opencreative.coding.blocks.executors.Executor
ua.mcchickenstudio.opencreative.coding.blocks.executors.entity.EntityExecutor
- All Implemented Interfaces:
CodingBlock, DisplayableIcon, EventAwaiter, ExtensionContent
- Direct Known Subclasses:
EntityAirChangedExecutor, EntityBatToggledSleepModeExecutor, EntityBornExecutor, EntityCombustedByBlockExecutor, EntityCombustedByEntityExecutor, EntityCreeperIgnitedExecutor, EntityCreeperPoweredExecutor, EntityDamagedItemExecutor, EntityDiedExecutor, EntityDismountedExecutor, EntityDroppedItemExecutor, EntityEndermanEscapedExecutor, EntityEnteredBlockExecutor, EntityEnteredLoveModeExecutor, EntityEnteredVehicleExecutor, EntityExplodedExecutor, EntityFireworkExplodedExecutor, EntityGetDamagedExecutor, EntityHangingBreakExecutor, EntityHorseJumpedExecutor, EntityInteractedBlockExecutor, EntityItemDespawnedExecutor, EntityItemMergedExecutor, EntityJumpedExecutor, EntityLoadedCrossbowExecutor, EntityMountedExecutor, EntityPickedUpItemExecutor, EntityPiglinBarteredExecutor, EntityPigZombieAngeredExecutor, EntityPotionEffectedExecutor, EntityProjectileHitExecutor, EntityPufferfishStateChangedExecutor, EntityRegainedHealthExecutor, EntityRemovedExecutor, EntityResurrectedExecutor, EntitySheepRegrownWoolExecutor, EntityShotBowExecutor, EntityShulkerDuplicatedExecutor, EntitySlimeSplitExecutor, EntitySpawnedExecutor, EntityTurtleGoesHomeExecutor, EntityTurtleLaysEggExecutor, EntityVehicleExitExecutor, EntityWardenAngerChangedExecutor, EntityWitchConsumedPotionExecutor, EntityWitchReadyPotionExecutor, EntityWitchThrownPotionExecutor
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Executor
decreaseCall, equals, executeActions, getActions, getBlockCategory, getEvent, getHandler, getID, getLastCalls, getLocaleName, getPlanet, getX, getY, getZ, hashCode, increaseCall, init, isDebug, isDisabled, run, setActions, setDebug, toStringModifier and TypeMethodDescriptionfinal voidDecreases calls amount by 1.final booleanprotected voidexecuteActions(@NotNull WorldEvent event) Executes all actions with specified event.final @NotNull ExecutorCategoryReturns coding block category of this executor.final WorldEventgetEvent()Returns last world event of executor.final ActionsHandlerfinal @NotNull StringgetID()Returns id of executor, that will be used to find it in registry.final intReturns how many times executor was called to execute actions.final @NotNull StringReturns localized name of executor.final @NotNull PlanetReturns planet, that was associated with executor.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()final voidIncreases calls amount by 1.voidInitializes an executor and sets planet and coding block location.final booleanisDebug()Checks whether is executor block marked for debugging.final booleanChecks whether executor is disabled and cannot be called.voidrun(@NotNull WorldEvent event) Checks executor, executes actions and sends information about executor.final voidsetActions(@NotNull List<Action> actions) Sets actions list for executor.final voidsetDebug(boolean debug) Enables or disables sending debug logs about executor and actions inside.toString()Methods inherited from interface DisplayableIcon
getCategory, getDisplayIconModifier and TypeMethodDescription@NotNull MenusCategoryReturns menus category, that will be used to filter coding block types.@NotNull org.bukkit.inventory.ItemStackReturns icon, that will be displayed in coding block type selection menu.Methods inherited from interface EventAwaiter
getEventClass, isCancellableModifier and TypeMethodDescription@NotNull Class<? extends WorldEvent> Returns event class, that can run executor on calling that event.default booleanChecks whether event can be canceled.Methods inherited from interface ExtensionContent
getDescription, getExtensionId, getName
-
Constructor Details
-
EntityExecutor
-