DecoratedPotPattern .java

net.minecraft.world.level.block.entity.DecoratedPotPattern (record, 12 lines): members: assetId, CODEC. strings: "asset_id". imports: RecordCodecBuilder.

net.minecraft.world.level.block.entityrecord12 linescommon464 B

API Surface (1)

record DecoratedPotPattern(Identifier assetId)

Fields & Constants (1)

CODEC

String literals (1)

"asset_id"

Code Graph: Dependencies (1)

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

Full Source

DecoratedPotPattern.java12 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block.entity;
2
3
import com.mojang.serialization.Codec;
4
import com.mojang.serialization.codecs.RecordCodecBuilder;
5
import net.minecraft.resources.Identifier;
6
7
public record DecoratedPotPattern(Identifier assetId) {
8
	public static final Codec<DecoratedPotPattern> CODEC = RecordCodecBuilder.create(
9
		i -> i.group(Identifier.CODEC.fieldOf("asset_id").forGetter(DecoratedPotPattern::assetId)).apply(i, DecoratedPotPattern::new)
10
	);
11
}
12

Decompiled Minecraft 26.3 source of DecoratedPotPattern (net/minecraft/world/level/block/entity/DecoratedPotPattern.java) with Mojang official mappings, stored verbatim on the site.