Package net.minecraft.predicate
Class StatePredicate
java.lang.Object
net.minecraft.predicate.StatePredicate
public class StatePredicate extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatePredicate.Builder
(package private) static class
StatePredicate.Condition
(package private) static class
StatePredicate.ExactValueCondition
(package private) static class
StatePredicate.RangedValueCondition
-
Field Summary
Fields Modifier and Type Field Description static StatePredicate
ANY
private List<StatePredicate.Condition>
conditions
-
Constructor Summary
Constructors Modifier Constructor Description private
StatePredicate(List<StatePredicate.Condition> testers)
-
Method Summary
Modifier and Type Method Description private static String
asNullableString(JsonElement json)
void
check(StateManager<?,?> factory, Consumer<String> reporter)
private static StatePredicate.Condition
createPredicate(String key, JsonElement json)
static StatePredicate
fromJson(JsonElement json)
boolean
test(BlockState state)
boolean
test(FluidState state)
<S extends State<?, S>>
booleantest(StateManager<?,S> stateManager, S container)
JsonElement
toJson()
-
Field Details
-
ANY
-
conditions
-
-
Constructor Details
-
StatePredicate
-
-
Method Details
-
createPredicate
-
asNullableString
-
test
-
test
-
test
-
check
-
fromJson
-
toJson
-