DebugGameEventInfo .java

net.minecraft.util.debug.DebugGameEventInfo (record, 16 lines): record with 2 components. members: event, pos, STREAM_CODEC. imports: GameEvent.

net.minecraft.util.debugrecord16 linescommon705 B

API Surface (1)

record DebugGameEventInfo(Holder<GameEvent> event, Vec3 pos)

Fields & Constants (1)

STREAM_CODEC

Code Graph: Dependencies (7)

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

Full Source

DebugGameEventInfo.java16 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.debug;
2
3
import net.minecraft.core.Holder;
4
import net.minecraft.core.registries.Registries;
5
import net.minecraft.network.RegistryFriendlyByteBuf;
6
import net.minecraft.network.codec.ByteBufCodecs;
7
import net.minecraft.network.codec.StreamCodec;
8
import net.minecraft.world.level.gameevent.GameEvent;
9
import net.minecraft.world.phys.Vec3;
10
11
public record DebugGameEventInfo(Holder<GameEvent> event, Vec3 pos) {
12
	public static final StreamCodec<RegistryFriendlyByteBuf, DebugGameEventInfo> STREAM_CODEC = StreamCodec.composite(
13
		ByteBufCodecs.holderRegistry(Registries.GAME_EVENT), DebugGameEventInfo::event, Vec3.STREAM_CODEC, DebugGameEventInfo::pos, DebugGameEventInfo::new
14
	);
15
}
16

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