DebugGoalInfo .java

net.minecraft.util.debug.DebugGoalInfo (record, 25 lines): record with 1 component. members: goals, DebugGoal, STREAM_CODEC. imports: ByteBuf.

net.minecraft.util.debugrecord25 linescommon880 B

API Surface (2)

record DebugGoalInfo(List<DebugGoalInfo.DebugGoal> goals)
record DebugGoal(int priority, boolean isRunning, String name)

Fields & Constants (1)

STREAM_CODEC

Code Graph: Dependencies (2)

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

Full Source

DebugGoalInfo.java25 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
8
public record DebugGoalInfo(List<DebugGoalInfo.DebugGoal> goals) {
9
	public static final StreamCodec<ByteBuf, DebugGoalInfo> STREAM_CODEC = StreamCodec.composite(
10
		DebugGoalInfo.DebugGoal.STREAM_CODEC.apply(ByteBufCodecs.list()), DebugGoalInfo::goals, DebugGoalInfo::new
11
	);
12
13
	public record DebugGoal(int priority, boolean isRunning, String name) {
14
		public static final StreamCodec<ByteBuf, DebugGoalInfo.DebugGoal> STREAM_CODEC = StreamCodec.composite(
15
			ByteBufCodecs.VAR_INT,
16
			DebugGoalInfo.DebugGoal::priority,
17
			ByteBufCodecs.BOOL,
18
			DebugGoalInfo.DebugGoal::isRunning,
19
			ByteBufCodecs.stringUtf8(255),
20
			DebugGoalInfo.DebugGoal::name,
21
			DebugGoalInfo.DebugGoal::new
22
		);
23
	}
24
}
25

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