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_324398_) private voidhandleSubscriptions(long p_324350_, int p_323574_) private voidhandleUnsubscriptions(long p_323971_, int p_324253_) booleanshouldLogSamples(RemoteDebugSampleType p_324431_) voidsubscribe(ServerPlayer p_324211_, RemoteDebugSampleType p_324355_) voidtick(int p_323889_)
-
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_323889_) -
handleSubscriptions
private void handleSubscriptions(long p_324350_, int p_323574_) -
handleUnsubscriptions
private void handleUnsubscriptions(long p_323971_, int p_324253_)
-