Package net.minecraft.block.pattern
Class BlockStateMatcher
java.lang.Object
net.minecraft.block.pattern.BlockStateMatcher
- All Implemented Interfaces:
Predicate<BlockState>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Predicate<BlockState>
private final StateContainer<Block,
BlockState> -
Constructor Summary
ModifierConstructorDescriptionprivate
BlockStateMatcher
(StateContainer<Block, BlockState> p_i45653_1_) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends Comparable<T>>
booleanapplies
(BlockState p_185927_1_, Property<T> p_185927_2_, Predicate<Object> p_185927_3_) static BlockStateMatcher
boolean
test
(BlockState p_test_1_) <V extends Comparable<V>>
BlockStateMatcher
-
Field Details
-
ANY
-
definition
-
properties
-
-
Constructor Details
-
BlockStateMatcher
-
-
Method Details
-
forBlock
-
test
- Specified by:
test
in interfacePredicate<BlockState>
-
applies
protected <T extends Comparable<T>> boolean applies(BlockState p_185927_1_, Property<T> p_185927_2_, Predicate<Object> p_185927_3_) -
where
public <V extends Comparable<V>> BlockStateMatcher where(Property<V> p_201028_1_, Predicate<Object> p_201028_2_)
-