Interface BlockPredicate
- All Superinterfaces:
Wrapper
- All Known Implementing Classes:
BlockPredicate.AllOf, BlockPredicate.AnyOf, BlockPredicate.HasSturdyFace, BlockPredicate.InsideWorldBounds, BlockPredicate.MatchingBiomes, BlockPredicate.MatchingBlocks, BlockPredicate.MatchingBlockTag, BlockPredicate.MatchingFluids, BlockPredicate.Not, BlockPredicate.Replaceable, BlockPredicate.True, BlockPredicate.Unobstructed, BlockPredicate.WouldSurvive
@NullMarked
@AsOf("2.3.0")
public sealed interface BlockPredicate
extends Wrapper
permits BlockPredicate.AllOf, BlockPredicate.AnyOf, BlockPredicate.HasSturdyFace, BlockPredicate.InsideWorldBounds, BlockPredicate.MatchingBiomes, BlockPredicate.MatchingBlockTag, BlockPredicate.MatchingBlocks, BlockPredicate.MatchingFluids, BlockPredicate.Not, BlockPredicate.Replaceable, BlockPredicate.True, BlockPredicate.Unobstructed, BlockPredicate.WouldSurvive
Wraps the BlockPredicate family, the positional block tests used by
placement modifiers.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic interfacestatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPredicateallOf(BlockPredicate... predicates) static BlockPredicateallOf(List<BlockPredicate> predicates) static BlockPredicatestatic BlockPredicateanyOf(BlockPredicate... predicates) static BlockPredicateanyOf(List<BlockPredicate> predicates) static BlockPredicatehasSturdyFace(BlockFace direction) static BlockPredicatehasSturdyFace(BlockVector offset, BlockFace direction) static BlockPredicateinsideWorld(BlockVector offset) static BlockPredicatematchesBlocks(List<Material> blocks) static BlockPredicatematchesBlocks(Material... blocks) static BlockPredicatematchesBlocks(BlockVector offset, List<Material> blocks) static BlockPredicatematchesFluids(FluidType... fluids) static BlockPredicatematchesFluids(BlockVector offset, List<FluidType> fluids) static BlockPredicatematchesTag(Tag<Material> tag) static BlockPredicatematchesTag(BlockVector offset, Tag<Material> tag) static BlockPredicatenoFluid()static BlockPredicatenoFluid(BlockVector offset) static BlockPredicatenot(BlockPredicate predicate) static BlockPredicatestatic BlockPredicatereplaceable(BlockVector offset) default ObjectConvert this handle to the real Minecraft object.static BlockPredicatestatic BlockPredicateunobstructed(BlockVector offset) static BlockPredicatewouldSurvive(BlockData state) static BlockPredicatewouldSurvive(BlockVector offset, BlockData state)
-
Field Details
-
WIRE
-
-
Method Details
-
matchesBlocks
-
matchesBlocks
-
matchesBlocks
-
matchesTag
-
matchesTag
-
matchesFluids
-
matchesFluids
-
noFluid
-
noFluid
-
hasSturdyFace
-
hasSturdyFace
-
replaceable
-
replaceable
-
wouldSurvive
-
wouldSurvive
-
insideWorld
-
unobstructed
-
unobstructed
-
anyOf
-
anyOf
-
allOf
-
allOf
-
not
-
alwaysTrue
-
toMinecraft
Description copied from interface:WrapperConvert this handle to the real Minecraft object.- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the real Minecraft object
-