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 pPacket) private voidhandleSubscriptions(long pMillis, int pTick) private voidhandleUnsubscriptions(long pMillis, int pTick) booleanshouldLogSamples(RemoteDebugSampleType pSampleType) voidsubscribe(ServerPlayer pPlayer, RemoteDebugSampleType pSampleType) voidtick(int pTick)
-
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 pTick) -
handleSubscriptions
private void handleSubscriptions(long pMillis, int pTick) -
handleUnsubscriptions
private void handleUnsubscriptions(long pMillis, int pTick)
-