RecipeDisplayId .java

net.minecraft.world.item.crafting.display.RecipeDisplayId (record, 12 lines): record with 1 component. members: index, STREAM_CODEC. imports: ByteBuf.

net.minecraft.world.item.crafting.displayrecord12 linescommon399 B

API Surface (1)

record RecipeDisplayId(int index)

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

RecipeDisplayId.java12 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.item.crafting.display;
2
3
import io.netty.buffer.ByteBuf;
4
import net.minecraft.network.codec.ByteBufCodecs;
5
import net.minecraft.network.codec.StreamCodec;
6
7
public record RecipeDisplayId(int index) {
8
	public static final StreamCodec<ByteBuf, RecipeDisplayId> STREAM_CODEC = StreamCodec.composite(
9
		ByteBufCodecs.VAR_INT, RecipeDisplayId::index, RecipeDisplayId::new
10
	);
11
}
12

Decompiled Minecraft 26.3 source of RecipeDisplayId (net/minecraft/world/item/crafting/display/RecipeDisplayId.java) with Mojang official mappings, stored verbatim on the site.