package net.minecraft.world.level.levelgen.structure.templatesystem; import com.mojang.serialization.MapCodec; import net.minecraft.util.RandomSource; import net.minecraft.world.level.block.state.BlockState; public class AlwaysTrueTest extends RuleTest { public static final MapCodec CODEC = MapCodec.unit(() -> AlwaysTrueTest.INSTANCE); public static final AlwaysTrueTest INSTANCE = new AlwaysTrueTest(); private AlwaysTrueTest() { } @Override public boolean test(BlockState p_230248_, RandomSource p_230249_) { return true; } @Override protected RuleTestType getType() { return RuleTestType.ALWAYS_TRUE_TEST; } }