Package net.minecraft.util.debugchart
Class DebugSampleSubscriptionTracker
java.lang.Object
net.minecraft.util.debugchart.DebugSampleSubscriptionTracker
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) static final record
-
Field Summary
Modifier 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
broadcast
(ClientboundDebugSamplePacket p_331964_) private void
handleSubscriptions
(long p_331878_, int p_331066_) private void
handleUnsubscriptions
(long p_335801_, int p_335929_) boolean
shouldLogSamples
(RemoteDebugSampleType p_328402_) void
subscribe
(ServerPlayer p_328157_, RemoteDebugSampleType p_336058_) void
tick
(int p_335345_)
-
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 p_335345_) -
handleSubscriptions
private void handleSubscriptions(long p_331878_, int p_331066_) -
handleUnsubscriptions
private void handleUnsubscriptions(long p_335801_, int p_335929_)
-