/* * Decompiled with CFR 0.152. * * Could not load the following classes: * io.netty.buffer.ByteBuf */ package net.minecraft.util.debug; import io.netty.buffer.ByteBuf; import java.util.List; import net.minecraft.network.codec.ByteBufCodecs; import net.minecraft.network.codec.StreamCodec; public record DebugGoalInfo(List goals) { public static final StreamCodec STREAM_CODEC = StreamCodec.composite(DebugGoal.STREAM_CODEC.apply(ByteBufCodecs.list()), DebugGoalInfo::goals, DebugGoalInfo::new); public record DebugGoal(int priority, boolean isRunning, String name) { public static final StreamCodec STREAM_CODEC = StreamCodec.composite(ByteBufCodecs.VAR_INT, DebugGoal::priority, ByteBufCodecs.BOOL, DebugGoal::isRunning, ByteBufCodecs.stringUtf8(255), DebugGoal::name, DebugGoal::new); } }