Package net.minecraft.util.debugchart
Class DebugSampleSubscriptionTracker
java.lang.Object
net.minecraft.util.debugchart.DebugSampleSubscriptionTracker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record
(package private) static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerList
static final int
static final int
private final Queue
<DebugSampleSubscriptionTracker.SubscriptionRequest> private final EnumMap
<RemoteDebugSampleType, Map<ServerPlayer, DebugSampleSubscriptionTracker.SubscriptionStartedAt>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
handleSubscriptions
(long millis, int tick) private void
handleUnsubscriptions
(long millis, int tick) boolean
shouldLogSamples
(RemoteDebugSampleType sampleType) void
subscribe
(ServerPlayer player, RemoteDebugSampleType sampleType) void
tick
(int tick)
-
Field Details
-
STOP_SENDING_AFTER_TICKS
public static final int STOP_SENDING_AFTER_TICKS- See Also:
-
STOP_SENDING_AFTER_MS
public static final int STOP_SENDING_AFTER_MS- See Also:
-
playerList
-
subscriptions
private final EnumMap<RemoteDebugSampleType,Map<ServerPlayer, subscriptionsDebugSampleSubscriptionTracker.SubscriptionStartedAt>> -
subscriptionRequestQueue
-
-
Constructor Details
-
DebugSampleSubscriptionTracker
-
-
Method Details
-
shouldLogSamples
-
broadcast
-
subscribe
-
tick
public void tick(int tick) -
handleSubscriptions
private void handleSubscriptions(long millis, int tick) -
handleUnsubscriptions
private void handleUnsubscriptions(long millis, int tick)
-