Class StatePropertiesPredicate
java.lang.Object
net.minecraft.advancements.critereon.StatePropertiesPredicate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static class
(package private) static class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StatePropertiesPredicate
private final List<StatePropertiesPredicate.PropertyMatcher>
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkState
(StateDefinition<?, ?> p_67673_, Consumer<String> p_67674_) static StatePropertiesPredicate
fromJson
(com.google.gson.JsonElement p_67680_) private static StatePropertiesPredicate.PropertyMatcher
private static String
getStringOrNull
(com.google.gson.JsonElement p_67690_) boolean
matches
(BlockState p_67668_) <S extends StateHolder<?,
S>>
booleanmatches
(StateDefinition<?, S> p_67670_, S p_67671_) boolean
matches
(FluidState p_67685_) com.google.gson.JsonElement
-
Field Details
-
ANY
-
properties
-
-
Constructor Details
-
StatePropertiesPredicate
StatePropertiesPredicate(List<StatePropertiesPredicate.PropertyMatcher> p_67662_)
-
-
Method Details
-
fromJson
private static StatePropertiesPredicate.PropertyMatcher fromJson(String p_67687_, com.google.gson.JsonElement p_67688_) -
getStringOrNull
-
matches
-
matches
-
matches
-
checkState
-
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-