public class BlockStateMatcher extends java.lang.Object implements java.util.function.Predicate<BlockState>
Modifier and Type | Field and Description |
---|---|
static java.util.function.Predicate<BlockState> |
ANY |
private StateContainer<Block,BlockState> |
blockstate |
private java.util.Map<IProperty<?>,java.util.function.Predicate<java.lang.Object>> |
propertyPredicates |
Modifier | Constructor and Description |
---|---|
private |
BlockStateMatcher(StateContainer<Block,BlockState> blockStateIn) |
Modifier and Type | Method and Description |
---|---|
static BlockStateMatcher |
forBlock(Block blockIn) |
protected <T extends java.lang.Comparable<T>> |
matches(BlockState blockState,
IProperty<T> property,
java.util.function.Predicate<java.lang.Object> predicate) |
boolean |
test(BlockState p_test_1_) |
<V extends java.lang.Comparable<V>> |
where(IProperty<V> property,
java.util.function.Predicate<java.lang.Object> is) |
public static final java.util.function.Predicate<BlockState> ANY
private final StateContainer<Block,BlockState> blockstate
private final java.util.Map<IProperty<?>,java.util.function.Predicate<java.lang.Object>> propertyPredicates
private BlockStateMatcher(StateContainer<Block,BlockState> blockStateIn)
public static BlockStateMatcher forBlock(Block blockIn)
public boolean test(@Nullable BlockState p_test_1_)
test
in interface java.util.function.Predicate<BlockState>
protected <T extends java.lang.Comparable<T>> boolean matches(BlockState blockState, IProperty<T> property, java.util.function.Predicate<java.lang.Object> predicate)
public <V extends java.lang.Comparable<V>> BlockStateMatcher where(IProperty<V> property, java.util.function.Predicate<java.lang.Object> is)