abstract static class StatePredicate.Condition extends Object
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
void |
reportMissing(StateManager<?,?> factory,
Consumer<String> reporter) |
protected abstract <T extends Comparable<T>> |
test(State<?,?> state,
Property<T> property) |
<S extends State<?,S>> |
test(StateManager<?,S> stateManager,
S state) |
abstract JsonElement |
toJson() |
private final String key
public Condition(String key)
public <S extends State<?,S>> boolean test(StateManager<?,S> stateManager, S state)
protected abstract <T extends Comparable<T>> boolean test(State<?,?> state, Property<T> property)
public abstract JsonElement toJson()
public String getKey()
public void reportMissing(StateManager<?,?> factory, Consumer<String> reporter)