RuleBlockEntityModifier .java

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.RuleBlockEntityModifier (interface, 18 lines): members: apply, getType, CODEC.

net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentityinterface18 linescommon676 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (1)

CODEC

Code Graph: Dependencies (4)

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

Full Source

RuleBlockEntityModifier.java18 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity;
2
3
import com.mojang.serialization.Codec;
4
import net.minecraft.core.registries.BuiltInRegistries;
5
import net.minecraft.nbt.CompoundTag;
6
import net.minecraft.util.RandomSource;
7
import org.jspecify.annotations.Nullable;
8
9
public interface RuleBlockEntityModifier {
10
	Codec<RuleBlockEntityModifier> CODEC = BuiltInRegistries.RULE_BLOCK_ENTITY_MODIFIER
11
		.byNameCodec()
12
		.dispatch(RuleBlockEntityModifier::getType, RuleBlockEntityModifierType::codec);
13
14
	@Nullable CompoundTag apply(final RandomSource random, final @Nullable CompoundTag existingTag);
15
16
	RuleBlockEntityModifierType<?> getType();
17
}
18

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