Package net.minecraft.predicate.block
Class BlockStatePredicate
java.lang.Object
net.minecraft.predicate.block.BlockStatePredicate
- All Implemented Interfaces:
Predicate<BlockState>
public class BlockStatePredicate extends Object implements Predicate<BlockState>
-
Field Summary
Fields Modifier and Type Field Description static Predicate<BlockState>
ANY
private StateManager<Block,BlockState>
manager
private Map<Property<?>,Predicate<Object>>
propertyTests
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockStatePredicate(StateManager<Block,BlockState> manager)
-
Method Summary
Modifier and Type Method Description static BlockStatePredicate
forBlock(Block block)
boolean
test(BlockState blockState)
protected <T extends Comparable<T>>
booleantestProperty(BlockState blockState, Property<T> property, Predicate<Object> predicate)
<V extends Comparable<V>>
BlockStatePredicatewith(Property<V> property, Predicate<Object> predicate)
-
Field Details
-
ANY
-
manager
-
propertyTests
-
-
Constructor Details
-
BlockStatePredicate
-
-
Method Details
-
forBlock
-
test
- Specified by:
test
in interfacePredicate<BlockState>
-
testProperty
protected <T extends Comparable<T>> boolean testProperty(BlockState blockState, Property<T> property, Predicate<Object> predicate) -
with
public <V extends Comparable<V>> BlockStatePredicate with(Property<V> property, Predicate<Object> predicate)
-