Interface SchedulerSource

All Known Subinterfaces:
Chunk, Damageable, Entity, LivingEntity, Mob, Player

public interface SchedulerSource
Represents a SchedulerSource, capable of having tasks scheduled to it.
Since:
0.1.0
See Also:
  • Method Details

    • execute

      boolean execute(Runnable task)
      Returns:
      false if the source is removed and the task was not scheduled
      Since:
      0.1.0
    • executeDelayed

      boolean executeDelayed(Runnable task, long delayTicks)
      Returns:
      false if the source is removed and the task was not scheduled
      Since:
      0.1.0
    • isOwnedByCurrentThread

      boolean isOwnedByCurrentThread()
      Returns:
      false if the source is not owned by the current thread
      Since:
      0.1.0