DebugStructureInfo .java

net.minecraft.util.debug.DebugStructureInfo (record): members: boundingBox, pieces, Piece, STREAM_CODEC. imports: BoundingBox, ByteBuf, ByteBufCodecs.

net.minecraft.util.debugrecord24 linescommon981 B

API Surface (2)

record DebugStructureInfo(BoundingBox boundingBox, List<DebugStructureInfo.Piece> pieces)
record Piece(BoundingBox boundingBox, boolean isStart)

Fields & Constants (1)

STREAM_CODEC

Code Graph: Dependencies (3)

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

Full Source

DebugStructureInfo.java24 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.debug;
2
3
import io.netty.buffer.ByteBuf;
4
import java.util.List;
5
import net.minecraft.network.codec.ByteBufCodecs;
6
import net.minecraft.network.codec.StreamCodec;
7
import net.minecraft.world.level.levelgen.structure.BoundingBox;
8
9
public record DebugStructureInfo(BoundingBox boundingBox, List<DebugStructureInfo.Piece> pieces) {
10
	public static final StreamCodec<ByteBuf, DebugStructureInfo> STREAM_CODEC = StreamCodec.composite(
11
		BoundingBox.STREAM_CODEC,
12
		DebugStructureInfo::boundingBox,
13
		DebugStructureInfo.Piece.STREAM_CODEC.apply(ByteBufCodecs.list()),
14
		DebugStructureInfo::pieces,
15
		DebugStructureInfo::new
16
	);
17
18
	public record Piece(BoundingBox boundingBox, boolean isStart) {
19
		public static final StreamCodec<ByteBuf, DebugStructureInfo.Piece> STREAM_CODEC = StreamCodec.composite(
20
			BoundingBox.STREAM_CODEC, DebugStructureInfo.Piece::boundingBox, ByteBufCodecs.BOOL, DebugStructureInfo.Piece::isStart, DebugStructureInfo.Piece::new
21
		);
22
	}
23
}
24

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