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 |
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
public static BlockStateMatcher forBlock(Block blockIn)
public boolean apply(@Nullable IBlockState p_apply_1_)
apply
in interface com.google.common.base.Predicate<IBlockState>
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)