Interface Operation

All Known Implementing Classes:
AddItemInteraction, ApplyAbilityEffectsInteraction, ApplyEffectInteraction, ApplyForceInteraction, AttachBeamInteraction, AugmentConditionInteraction, BedInteraction, BlockConditionInteraction, BreakBlockInteraction, BuilderToolInteraction, CameraInteraction, CameraShakeInteraction, CanBreakRespawnPointInteraction, CancelChainInteraction, CarryBlockInteraction, CarryDroppedBlockInteraction, CarryPlaceBlockInteraction, ChainFlagInteraction, ChainingInteraction, ChangeActiveSlotInteraction, ChangeBlockInteraction, ChangeFarmingStageInteraction, ChangeStatBaseInteraction, ChangeStateInteraction, ChangeStatInteraction, ChangeStatWithModifierInteraction, ChargingInteraction, CheckUniqueItemUsageInteraction, ClearCarriedBlockInteraction, ClearEntityEffectInteraction, ConditionInteraction, ContextualUseNPCInteraction, CooldownConditionInteraction, CycleBlockGroupInteraction, DamageEntityInteraction, DestroyBlockInteraction, DestroyTaggedVolumesInteraction, DoorInteraction, DragEraseBlockInteraction, DragPlaceBlockInteraction, DurabilityConditionInteraction, EffectConditionInteraction, EnterPortalInteraction, EquipItemInteraction, EventStartInteraction, EventStopInteraction, ExitInstanceInteraction, ExplodeInteraction, ExtrudePlaceBlockInteraction, FertilizeSoilInteraction, FirstClickInteraction, GameFlagConditionInteraction, GlobalEventStartInteraction, GlobalEventStopInteraction, GrantAbilityChargesInteraction, GroundedConditionInteraction, HarvestCropInteraction, HubPortalInteraction, IncreaseBackpackCapacityInteraction, IncrementCooldownInteraction, Interaction, InterruptInteraction, JumpOperation, LaunchAbilityProjectileInteraction, LaunchPadInteraction, LaunchProjectileInteraction, LearnRecipeInteraction, MarkAbilityBenchIntroSeenInteraction, MemoriesConditionInteraction, ModifyIntervalConditionInteraction, ModifyInventoryInteraction, MountInteraction, MovementConditionInteraction, OpenAbilityBenchInteraction, OpenBenchPageInteraction, OpenChapterRewardsInteraction, OpenContainerInteraction, OpenCustomUIInteraction, OpenItemStackContainerInteraction, OpenPageInteraction, OpenProcessingBenchInteraction, ParallelInteraction, PickBlockInteraction, PickupItemInteraction, PlaceBlockInteraction, PlaceFluidInteraction, PlacementCountConditionInteraction, PlaceModeSelectInteraction, PrefabSelectionInteraction, ProjectileInteraction, PullEntityAbilityInteraction, RefillContainerInteraction, RemoveEntityInteraction, RepeatInteraction, ReplaceInteraction, ResetCooldownInteraction, ReturnPortalInteraction, RevealMapMarkersInViewInteraction, RunOnBlockTypesInteraction, RunRootInteraction, SeatingInteraction, SelectInteraction, SendBeaconInteraction, SendMessageInteraction, SerialInteraction, SetGameFlagInteraction, SetMemoriesCapacityInteraction, ShowEventTitleInteraction, SignalNearbyVolumesInteraction, SimpleBlockInteraction, SimpleInstantInteraction, SimpleInteraction, SpawnAbilityEntityInteraction, SpawnDeployableAtHitLocationInteraction, SpawnDeployableAtLocationInteraction, SpawnDeployableFromRaycastInteraction, SpawnMinecartInteraction, SpawnNPCInteraction, SpawnPrefabInteraction, SpawnTriggerVolumeInteraction, SpectateControlInteraction, SplitAbilityProjectileInteraction, StartObjectiveInteraction, StatsConditionBaseInteraction, StatsConditionInteraction, StatsConditionWithModifierInteraction, SurfaceDrawPlaceBlockInteraction, TeleportConfigInstanceInteraction, TeleporterInteraction, TeleportInstanceInteraction, ToggleGliderInteraction, TriggerAbilityFXInteraction, TriggerCooldownInteraction, TriggerSpawnMarkersInteraction, UseBlockInteraction, UseCaptureCrateInteraction, UseCoopInteraction, UseEntityInteraction, UseNPCInteraction, UseWateringCanInteraction, WieldingInteraction

public interface Operation
See Also:
  • Method Details

    • tick

      void tick(@Nonnull Ref<EntityStore> ref, boolean firstRun, float time, @Nonnull InteractionType type, @Nonnull InteractionContext context, @Nonnull CooldownHandler cooldownHandler)
      Called to tick the operation for the given entity.
      Parameters:
      ref - The entity reference of the entity.
      firstRun - Whether this is the first time that the operation is ticking.
      time - The delta time of the current tick.
      type - The type of the affiliated operation.
      context - The context of the affiliated operation.
      cooldownHandler - The cooldown handler for the instigating entity.
    • simulateTick

      void simulateTick(@Nonnull Ref<EntityStore> ref, boolean firstRun, float time, @Nonnull InteractionType type, @Nonnull InteractionContext context, @Nonnull CooldownHandler cooldownHandler)
      Called to tick the operation for the given entity.

      Simulated tick is provided for the execution of operation logic for NPC entities.

      Parameters:
      ref - The entity reference of the entity.
      firstRun - Whether this is the first time that the operation is ticking.
      time - The delta time of the current tick.
      type - The type of the affiliated operation.
      context - The context of the affiliated operation.
      cooldownHandler - The cooldown handler for the instigating entity.
    • handle

      default void handle(@Nonnull Ref<EntityStore> ref, boolean firstRun, float time, @Nonnull InteractionType type, @Nonnull InteractionContext context)
    • getWaitForDataFrom

      WaitForDataFrom getWaitForDataFrom()
    • getRules

      @Nullable default InteractionRules getRules()
    • getTags

      default it.unimi.dsi.fastutil.ints.Int2ObjectMap<it.unimi.dsi.fastutil.ints.IntSet> getTags()
    • getInnerOperation

      default Operation getInnerOperation()