public class BlockStateMatcher extends java.lang.Object implements com.google.common.base.Predicate<IBlockState>
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<IBlockState> |
ANY |
private BlockStateContainer |
blockstate |
private java.util.Map<IProperty<?>,com.google.common.base.Predicate<?>> |
propertyPredicates |
Modifier | Constructor and Description |
---|---|
private |
BlockStateMatcher(BlockStateContainer blockStateIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(IBlockState p_apply_1_) |
static BlockStateMatcher |
forBlock(Block blockIn) |
protected <T extends java.lang.Comparable<T>> |
matches(IBlockState blockState,
IProperty<T> property,
com.google.common.base.Predicate<T> predicate) |
<V extends java.lang.Comparable<V>> |
where(IProperty<V> property,
com.google.common.base.Predicate<? extends V> is) |
public static final com.google.common.base.Predicate<IBlockState> ANY
private final BlockStateContainer blockstate
private final java.util.Map<IProperty<?>,com.google.common.base.Predicate<?>> propertyPredicates
private BlockStateMatcher(BlockStateContainer blockStateIn)
public static BlockStateMatcher forBlock(Block blockIn)
public boolean apply(@Nullable IBlockState p_apply_1_)
protected <T extends java.lang.Comparable<T>> boolean matches(IBlockState blockState, IProperty<T> property, com.google.common.base.Predicate<T> predicate)
public <V extends java.lang.Comparable<V>> BlockStateMatcher where(IProperty<V> property, com.google.common.base.Predicate<? extends V> is)