DebugPathInfo .java

net.minecraft.util.debug.DebugPathInfo (record, 13 lines): members: path, maxNodeDistance, STREAM_CODEC. imports: FriendlyByteBuf.

net.minecraft.util.debugrecord13 linescommon523 B

API Surface (1)

record DebugPathInfo(Path path, float maxNodeDistance)

Fields & Constants (1)

STREAM_CODEC

Code Graph: Dependencies (4)

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

Full Source

DebugPathInfo.java13 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.debug;
2
3
import net.minecraft.network.FriendlyByteBuf;
4
import net.minecraft.network.codec.ByteBufCodecs;
5
import net.minecraft.network.codec.StreamCodec;
6
import net.minecraft.world.level.pathfinder.Path;
7
8
public record DebugPathInfo(Path path, float maxNodeDistance) {
9
	public static final StreamCodec<FriendlyByteBuf, DebugPathInfo> STREAM_CODEC = StreamCodec.composite(
10
		Path.DEBUG_STREAM_CODEC, DebugPathInfo::path, ByteBufCodecs.FLOAT, DebugPathInfo::maxNodeDistance, DebugPathInfo::new
11
	);
12
}
13

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