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 pConnection, DebugScreenOverlay pDebugScreenOverlay) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddFlag(Set<DebugSubscription<?>> pSubscriptions, DebugSubscription<?> pSubscription, boolean pEnabled) (package private) static <T> ClientDebugSubscriber.ValueMapType<BlockPos, T> blocks()(package private) static <T> ClientDebugSubscriber.ValueMapType<ChunkPos, T> chunks()voidclear()createDebugValueAccess(Level pLevel) voidvoiddropEntity(Entity pEntity) void(package private) static <T> ClientDebugSubscriber.ValueMapType<UUID, T> entities()(package private) <K,V> void forEachValue(DebugSubscription<V> pSubscription, ClientDebugSubscriber.ValueMapType<K, V> pType, BiConsumer<K, V> pAction) (package private) <K,V> V getValue(DebugSubscription<V> pSubscription, K pKey, ClientDebugSubscriber.ValueMapType<K, V> pType) private <K,V> ClientDebugSubscriber.ValueMap <K, V> getValueMap(DebugSubscription<V> pSubscription, ClientDebugSubscriber.ValueMapType<K, V> pType) (package private) <V> ClientDebugSubscriber.ValueMaps<V> getValueMaps(DebugSubscription<V> pSubscription) private voidonSubscriptionsChanged(Set<DebugSubscription<?>> pSubscriptions) <T> voidpushEvent(long pGameTime, DebugSubscription.Event<T> pEvent) private Set<DebugSubscription<?>> voidtick(long pGameTime) <T> voidupdateBlock(long pGameTime, BlockPos pPos, DebugSubscription.Update<T> pUpdate) <T> voidupdateChunk(long pGameTime, ChunkPos pChunkPos, DebugSubscription.Update<T> pUpdate) <T> voidupdateEntity(long pGameTime, Entity pEntity, DebugSubscription.Update<T> pUpdate) private <K,V> void updateMap(long pGameTime, K pKey, DebugSubscription.Update<V> pUpdate, ClientDebugSubscriber.ValueMapType<K, V> pType)
-
Field Details
-
connection
-
debugScreenOverlay
-
remoteSubscriptions
-
valuesBySubscription
-
-
Constructor Details
-
ClientDebugSubscriber
public ClientDebugSubscriber(ClientPacketListener pConnection, DebugScreenOverlay pDebugScreenOverlay)
-
-
Method Details
-
addFlag
private static void addFlag(Set<DebugSubscription<?>> pSubscriptions, DebugSubscription<?> pSubscription, boolean pEnabled) -
requestedSubscriptions
-
clear
public void clear() -
tick
public void tick(long pGameTime) -
onSubscriptionsChanged
-
getValueMaps
-
getValueMap
@Nullable private <K,V> ClientDebugSubscriber.ValueMap<K,V> getValueMap(DebugSubscription<V> pSubscription, ClientDebugSubscriber.ValueMapType<K, V> pType) -
getValue
@Nullable <K,V> V getValue(DebugSubscription<V> pSubscription, K pKey, ClientDebugSubscriber.ValueMapType<K, V> pType) -
createDebugValueAccess
-
updateChunk
public <T> void updateChunk(long pGameTime, ChunkPos pChunkPos, DebugSubscription.Update<T> pUpdate) -
updateBlock
-
updateEntity
-
pushEvent
-
updateMap
private <K,V> void updateMap(long pGameTime, K pKey, DebugSubscription.Update<V> pUpdate, ClientDebugSubscriber.ValueMapType<K, V> pType) -
forEachValue
<K,V> void forEachValue(DebugSubscription<V> pSubscription, ClientDebugSubscriber.ValueMapType<K, V> pType, BiConsumer<K, V> pAction) -
dropLevel
public void dropLevel() -
dropChunk
-
dropEntity
-
entities
-
blocks
-
chunks
-