Passthrough .java

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.Passthrough (class, 22 lines): members: INSTANCE, apply, getType, CODEC.

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentityclass22 linescommon712 B

Implements

API Surface (1)

RuleBlockEntityModifierType<?> getType()

Fields & Constants (2)

INSTANCE
CODEC

Code Graph: Dependencies (4)

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

Full Source

Passthrough.java22 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity;
2
3
import com.mojang.serialization.MapCodec;
4
import net.minecraft.nbt.CompoundTag;
5
import net.minecraft.util.RandomSource;
6
import org.jspecify.annotations.Nullable;
7
8
public class Passthrough implements RuleBlockEntityModifier {
9
	public static final Passthrough INSTANCE = new Passthrough();
10
	public static final MapCodec<Passthrough> CODEC = MapCodec.unit(INSTANCE);
11
12
	@Override
13
	public @Nullable CompoundTag apply(final RandomSource random, final @Nullable CompoundTag existingTag) {
14
		return existingTag;
15
	}
16
17
	@Override
18
	public RuleBlockEntityModifierType<?> getType() {
19
		return RuleBlockEntityModifierType.PASSTHROUGH;
20
	}
21
}
22

Decompiled Minecraft 26.3 source of Passthrough (net/minecraft/world/level/levelgen/structure/templatesystem/rule/blockentity/Passthrough.java) with Mojang official mappings, stored verbatim on the site.