Class ClientDebugSubscriber
java.lang.Object
net.minecraft.client.multiplayer.ClientDebugSubscriber
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static interfaceprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientPacketListenerprivate final DebugScreenOverlayprivate Set<DebugSubscription<?>> private final Map<DebugSubscription<?>, ClientDebugSubscriber.ValueMaps<?>> -
Constructor Summary
ConstructorsConstructorDescriptionClientDebugSubscriber(ClientPacketListener connection, DebugScreenOverlay debugScreenOverlay) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddFlag(Set<DebugSubscription<?>> output, DebugSubscription<?> subscription, boolean flag) private static <T> ClientDebugSubscriber.ValueMapType<BlockPos, T> blocks()private static <T> ClientDebugSubscriber.ValueMapType<ChunkPos, T> chunks()voidclear()createDebugValueAccess(Level level) voidvoiddropEntity(Entity entity) voidprivate static <T> ClientDebugSubscriber.ValueMapType<UUID, T> entities()private <K,V> void forEachValue(DebugSubscription<V> subscription, ClientDebugSubscriber.ValueMapType<K, V> type, BiConsumer<K, V> consumer) private <K,V> @Nullable V getValue(DebugSubscription<V> subscription, K key, ClientDebugSubscriber.ValueMapType<K, V> type) private <K,V> @Nullable ClientDebugSubscriber.ValueMap <K, V> getValueMap(DebugSubscription<V> subscription, ClientDebugSubscriber.ValueMapType<K, V> mapType) private <V> @Nullable ClientDebugSubscriber.ValueMaps<V> getValueMaps(DebugSubscription<V> subscription) private voidinitializeSubscriptions(Set<DebugSubscription<?>> newSubscriptions) private voidonSubscriptionsChanged(Set<DebugSubscription<?>> newSubscriptions) <T> voidpushEvent(long gameTime, DebugSubscription.Event<T> event) private Set<DebugSubscription<?>> voidtick(long gameTime) <T> voidupdateBlock(long gameTime, BlockPos blockPos, DebugSubscription.Update<T> update) <T> voidupdateChunk(long gameTime, ChunkPos chunkPos, DebugSubscription.Update<T> update) <T> voidupdateEntity(long gameTime, Entity entity, DebugSubscription.Update<T> update) private <K,V> void updateMap(long gameTime, K key, DebugSubscription.Update<V> update, ClientDebugSubscriber.ValueMapType<K, V> type)
-
Field Details
-
connection
-
debugScreenOverlay
-
remoteSubscriptions
-
valuesBySubscription
-
-
Constructor Details
-
ClientDebugSubscriber
public ClientDebugSubscriber(ClientPacketListener connection, DebugScreenOverlay debugScreenOverlay)
-
-
Method Details
-
addFlag
private static void addFlag(Set<DebugSubscription<?>> output, DebugSubscription<?> subscription, boolean flag) -
requestedSubscriptions
-
clear
public void clear() -
tick
public void tick(long gameTime) -
onSubscriptionsChanged
-
initializeSubscriptions
-
getValueMaps
private <V> @Nullable ClientDebugSubscriber.ValueMaps<V> getValueMaps(DebugSubscription<V> subscription) -
getValueMap
private <K,V> @Nullable ClientDebugSubscriber.ValueMap<K,V> getValueMap(DebugSubscription<V> subscription, ClientDebugSubscriber.ValueMapType<K, V> mapType) -
getValue
private <K,V> @Nullable V getValue(DebugSubscription<V> subscription, K key, ClientDebugSubscriber.ValueMapType<K, V> type) -
createDebugValueAccess
-
updateChunk
-
updateBlock
-
updateEntity
-
pushEvent
-
updateMap
private <K,V> void updateMap(long gameTime, K key, DebugSubscription.Update<V> update, ClientDebugSubscriber.ValueMapType<K, V> type) -
forEachValue
private <K,V> void forEachValue(DebugSubscription<V> subscription, ClientDebugSubscriber.ValueMapType<K, V> type, BiConsumer<K, V> consumer) -
dropLevel
public void dropLevel() -
dropChunk
-
dropEntity
-
entities
-
blocks
-
chunks
-