DebugValueAccess .java

net.minecraft.util.debug.DebugValueAccess (interface): members: getEntityValue, forEachEntity, getBlockValue, getChunkValue, EventVisitor, forEachBlock.

net.minecraft.util.debuginterface29 linescommon1.0 KB

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

DebugValueAccess.java29 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.debug;
2
3
import java.util.function.BiConsumer;
4
import net.minecraft.core.BlockPos;
5
import net.minecraft.world.entity.Entity;
6
import net.minecraft.world.level.ChunkPos;
7
import org.jspecify.annotations.Nullable;
8
9
public interface DebugValueAccess {
10
	<T> void forEachChunk(DebugSubscription<T> subscription, BiConsumer<ChunkPos, T> consumer);
11
12
	<T> @Nullable T getChunkValue(DebugSubscription<T> subscription, ChunkPos chunkPos);
13
14
	<T> void forEachBlock(DebugSubscription<T> subscription, BiConsumer<BlockPos, T> consumer);
15
16
	<T> @Nullable T getBlockValue(DebugSubscription<T> subscription, BlockPos blockPos);
17
18
	<T> void forEachEntity(DebugSubscription<T> subscription, BiConsumer<Entity, T> consumer);
19
20
	<T> @Nullable T getEntityValue(DebugSubscription<T> subscription, Entity entity);
21
22
	<T> void forEachEvent(DebugSubscription<T> subscription, DebugValueAccess.EventVisitor<T> visitor);
23
24
	@FunctionalInterface
25
	interface EventVisitor<T> {
26
		void accept(T value, int remainingTicks, int totalLifetime);
27
	}
28
}
29

Decompiled Minecraft 26.3 source of DebugValueAccess (net/minecraft/util/debug/DebugValueAccess.java) with Mojang official mappings, stored verbatim on the site.