Interface BlockStatePredicate
- All Superinterfaces:
Predicate<net.minecraft.world.level.block.state.BlockState>,ReplacementMatch
- All Known Implementing Classes:
BlockStatePredicate.AndMatch,BlockStatePredicate.BlockMatch,BlockStatePredicate.NotMatch,BlockStatePredicate.OrMatch,BlockStatePredicate.RegexMatch,BlockStatePredicate.Simple,BlockStatePredicate.StateMatch,BlockStatePredicate.TagMatch
public sealed interface BlockStatePredicate
extends Predicate<net.minecraft.world.level.block.state.BlockState>, ReplacementMatch
permits BlockStatePredicate.Simple, BlockStatePredicate.BlockMatch, BlockStatePredicate.StateMatch, BlockStatePredicate.TagMatch, BlockStatePredicate.RegexMatch, BlockStatePredicate.OrMatch, BlockStatePredicate.NotMatch, BlockStatePredicate.AndMatch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final recordstatic final classstatic final recordstatic final classstatic enumstatic final recordstatic final record -
Field Summary
Fields inherited from interface dev.latvian.mods.kubejs.recipe.match.ReplacementMatch
NONE -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable net.minecraft.world.level.levelgen.structure.templatesystem.RuleTestdefault booleancheck(List<net.minecraft.world.level.levelgen.feature.configurations.OreConfiguration.TargetBlockState> targetStates) static BlockStatePredicatefromString(dev.latvian.mods.rhino.Context cx, String s) default Set<net.minecraft.resources.ResourceLocation> default Collection<net.minecraft.world.level.block.Block> default Collection<net.minecraft.world.level.block.state.BlockState> booleantest(net.minecraft.world.level.block.state.BlockState state) default booleantestBlock(net.minecraft.world.level.block.Block block) static BlockStatePredicatestatic net.minecraft.world.level.levelgen.structure.templatesystem.RuleTestwrapRuleTest(dev.latvian.mods.rhino.Context cx, Object o)
-
Method Details
-
test
boolean test(net.minecraft.world.level.block.state.BlockState state) -
testBlock
default boolean testBlock(net.minecraft.world.level.block.Block block) -
asRuleTest
@Nullable default @Nullable net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest asRuleTest() -
fromString
-
wrap
-
wrapRuleTest
static net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest wrapRuleTest(dev.latvian.mods.rhino.Context cx, Object o) -
getBlockStates
-
getBlocks
-
getBlockIds
-
check
default boolean check(List<net.minecraft.world.level.levelgen.feature.configurations.OreConfiguration.TargetBlockState> targetStates)
-