public class ConditionPropertyValue extends java.lang.Object implements ICondition
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key |
private static com.google.common.base.Splitter |
SPLITTER |
private java.lang.String |
value |
FALSE, TRUE
Constructor and Description |
---|
ConditionPropertyValue(java.lang.String keyIn,
java.lang.String valueIn) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Predicate<IBlockState> |
getPredicate(BlockStateContainer blockState) |
private com.google.common.base.Predicate<IBlockState> |
makePredicate(IProperty<?> property,
java.lang.String valueIn) |
java.lang.String |
toString() |
private static final com.google.common.base.Splitter SPLITTER
private final java.lang.String key
private final java.lang.String value
public ConditionPropertyValue(java.lang.String keyIn, java.lang.String valueIn)
public com.google.common.base.Predicate<IBlockState> getPredicate(BlockStateContainer blockState)
getPredicate
in interface ICondition
private com.google.common.base.Predicate<IBlockState> makePredicate(IProperty<?> property, java.lang.String valueIn)
public java.lang.String toString()
toString
in class java.lang.Object