Class TickingTracker


public class TickingTracker extends ChunkTracker
  • Field Details

    • MAX_LEVEL

      public static final int MAX_LEVEL
      See Also:
    • INITIAL_TICKET_LIST_CAPACITY

      private static final int INITIAL_TICKET_LIST_CAPACITY
      See Also:
    • chunks

      protected final it.unimi.dsi.fastutil.longs.Long2ByteMap chunks
    • tickets

      private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<SortedArraySet<Ticket<?>>> tickets
  • Constructor Details

    • TickingTracker

      public TickingTracker()
  • Method Details

    • getTickets

      private SortedArraySet<Ticket<?>> getTickets(long p_184178_)
    • getTicketLevelAt

      private int getTicketLevelAt(SortedArraySet<Ticket<?>> p_184160_)
    • addTicket

      public void addTicket(long p_184152_, Ticket<?> p_184153_)
    • removeTicket

      public void removeTicket(long p_184166_, Ticket<?> p_184167_)
    • addTicket

      public <T> void addTicket(TicketType<T> p_184155_, ChunkPos p_184156_, int p_184157_, T p_184158_)
    • removeTicket

      public <T> void removeTicket(TicketType<T> p_184169_, ChunkPos p_184170_, int p_184171_, T p_184172_)
    • replacePlayerTicketsLevel

      public void replacePlayerTicketsLevel(int p_184147_)
    • getLevelFromSource

      protected int getLevelFromSource(long p_184164_)
      Specified by:
      getLevelFromSource in class ChunkTracker
    • getLevel

      public int getLevel(ChunkPos p_184162_)
    • getLevel

      protected int getLevel(long p_184174_)
      Specified by:
      getLevel in class DynamicGraphMinFixedPoint
    • setLevel

      protected void setLevel(long p_184149_, int p_184150_)
      Specified by:
      setLevel in class DynamicGraphMinFixedPoint
    • runAllUpdates

      public void runAllUpdates()
    • getTicketDebugString

      public String getTicketDebugString(long p_184176_)