Class BlockStatePredicate
java.lang.Object
net.minecraft.world.level.block.state.predicate.BlockStatePredicate
- All Implemented Interfaces:
Predicate<BlockState>
-
Field Summary
Modifier and TypeFieldDescriptionstatic Predicate<BlockState>
private StateDefinition<Block,BlockState>
-
Constructor Summary
ModifierConstructorDescriptionprivate
BlockStatePredicate(StateDefinition<Block,BlockState> p_61286_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends Comparable<T>>
booleanapplies(BlockState p_61292_, Property<T> p_61293_, Predicate<Object> p_61294_)
static BlockStatePredicate
boolean
test(BlockState p_61290_)
<V extends Comparable<V>>
BlockStatePredicate
-
Field Details
-
ANY
-
definition
-
properties
-
-
Constructor Details
-
BlockStatePredicate
-
-
Method Details
-
forBlock
-
test
- Specified by:
test
in interfacePredicate<BlockState>
-
applies
protected <T extends Comparable<T>> boolean applies(BlockState p_61292_, Property<T> p_61293_, Predicate<Object> p_61294_) -
where
public <V extends Comparable<V>> BlockStatePredicate where(Property<V> p_61296_, Predicate<Object> p_61297_)
-