Class TickingScript

java.lang.Object
net.botwithus.rs3.script.Script
net.botwithus.rs3.script.TickingScript
All Implemented Interfaces:
Runnable, Consumer<ServerTickedEvent>, ImmutableScript, ItemInputProvider, ItemOutputProvider, ItemProvider

public abstract class TickingScript extends Script implements Consumer<ServerTickedEvent>
  • Constructor Details

  • Method Details

    • onInitialize

      public boolean onInitialize()
    • onTick

      public abstract void onTick(LocalPlayer self)
    • ticksElapsed

      public boolean ticksElapsed(long targetTicks)
    • initialize

      public final boolean initialize()
      Description copied from class: Script
      Initializes the script, this method loads the script configuration.
      Overrides:
      initialize in class Script
      Returns:
      If the script should be active
    • onDeactivation

      public void onDeactivation()
      Overrides:
      onDeactivation in class Script
    • accept

      public final void accept(@NotNull @NotNull ServerTickedEvent event)
      Specified by:
      accept in interface Consumer<ServerTickedEvent>
    • run

      public final void run()
      Specified by:
      run in interface Runnable
      Specified by:
      run in class Script
    • onUninitialize

      public void onUninitialize()
      Overrides:
      onUninitialize in class Script