Package net.minecraft.client.multiplayer
Class ClientDebugSubscriber
java.lang.Object
net.minecraft.client.multiplayer.ClientDebugSubscriber
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static interface(package private) 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<?>> subscriptions, DebugSubscription<?> subscription, boolean enabled) (package private) static <T> ClientDebugSubscriber.ValueMapType<BlockPos, T> blocks()(package private) static <T> ClientDebugSubscriber.ValueMapType<ChunkPos, T> chunks()voidclear()createDebugValueAccess(Level level) voidvoiddropEntity(Entity entity) void(package private) static <T> ClientDebugSubscriber.ValueMapType<UUID, T> entities()(package private) <K,V> void forEachValue(DebugSubscription<V> subscription, ClientDebugSubscriber.ValueMapType<K, V> type, BiConsumer<K, V> action) (package private) <K,V> V getValue(DebugSubscription<V> subscription, K key, ClientDebugSubscriber.ValueMapType<K, V> type) private <K,V> ClientDebugSubscriber.ValueMap <K, V> getValueMap(DebugSubscription<V> subscription, ClientDebugSubscriber.ValueMapType<K, V> type) (package private) <V> ClientDebugSubscriber.ValueMaps<V> getValueMaps(DebugSubscription<V> subscription) private voidonSubscriptionsChanged(Set<DebugSubscription<?>> subscriptions) <T> voidpushEvent(long gameTime, DebugSubscription.Event<T> event) private Set<DebugSubscription<?>> voidtick(long gameTime) <T> voidupdateBlock(long gameTime, BlockPos pos, 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<?>> subscriptions, DebugSubscription<?> subscription, boolean enabled) -
requestedSubscriptions
-
clear
public void clear() -
tick
public void tick(long gameTime) -
onSubscriptionsChanged
-
getValueMaps
-
getValueMap
@Nullable private <K,V> ClientDebugSubscriber.ValueMap<K,V> getValueMap(DebugSubscription<V> subscription, ClientDebugSubscriber.ValueMapType<K, V> type) -
getValue
@Nullable <K,V> 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
<K,V> void forEachValue(DebugSubscription<V> subscription, ClientDebugSubscriber.ValueMapType<K, V> type, BiConsumer<K, V> action) -
dropLevel
public void dropLevel() -
dropChunk
-
dropEntity
-
entities
-
blocks
-
chunks
-