Class OverlayQueue

  • All Implemented Interfaces:

    
    public final class OverlayQueue
    extends DelayedWorkQueue<List<ServerPlayer>>
                        

    A type of delayed work queue specifically for showing overlays to players.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      OverlayQueue()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean add(Integer delay, ResourceLocation texture, Integer duration) Add an overlay to be shown.
      final Boolean add(Integer delay, String texture, Integer duration) Add an overlay to be shown using The Broken Script's mod ID.
      final Unit start(ServerPlayer players) Start the queue for the specified players.
      • Methods inherited from class dev.wendigodrip.thebrokenscript.api.queue.DelayedWorkQueue

        add, getQueue, next, pop, removeFirst, start
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OverlayQueue

        OverlayQueue()
    • Method Detail

      • start

         final Unit start(ServerPlayer players)

        Start the queue for the specified players.