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 PlayerListstatic final intstatic final intprivate final Queue<DebugSampleSubscriptionTracker.SubscriptionRequest> private final EnumMap<RemoteDebugSampleType, Map<ServerPlayer, DebugSampleSubscriptionTracker.SubscriptionStartedAt>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcast(ClientboundDebugSamplePacket p_331964_) private voidhandleSubscriptions(long p_331878_, int p_331066_) private voidhandleUnsubscriptions(long p_335801_, int p_335929_) booleanshouldLogSamples(RemoteDebugSampleType p_328402_) voidsubscribe(ServerPlayer p_328157_, RemoteDebugSampleType p_336058_) voidtick(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_)
-