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
broadcast
(ClientboundDebugSamplePacket pPacket) private void
handleSubscriptions
(long pMillis, int pTick) private void
handleUnsubscriptions
(long pMillis, int pTick) boolean
shouldLogSamples
(RemoteDebugSampleType pSampleType) void
subscribe
(ServerPlayer pPlayer, RemoteDebugSampleType pSampleType) void
tick
(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)
-