Class StatePropertiesPredicate
java.lang.Object
net.minecraft.advancements.criterion.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.Matcher>
-
Constructor Summary
ModifierConstructorDescriptionprivate
StatePropertiesPredicate
(List<StatePropertiesPredicate.Matcher> p_i225790_1_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkState
(StateContainer<?, ?> p_227183_1_, Consumer<String> p_227183_2_) static StatePropertiesPredicate
fromJson
(com.google.gson.JsonElement p_227186_0_) private static StatePropertiesPredicate.Matcher
private static String
getStringOrNull
(com.google.gson.JsonElement p_227189_0_) boolean
matches
(BlockState p_227181_1_) boolean
matches
(FluidState p_227185_1_) <S extends StateHolder<?,
S>>
booleanmatches
(StateContainer<?, S> p_227182_1_, S p_227182_2_) com.google.gson.JsonElement
-
Field Details
-
ANY
-
properties
-
-
Constructor Details
-
StatePropertiesPredicate
-
-
Method Details
-
fromJson
private static StatePropertiesPredicate.Matcher fromJson(String p_227188_0_, com.google.gson.JsonElement p_227188_1_) -
getStringOrNull
-
matches
public <S extends StateHolder<?,S>> boolean matches(StateContainer<?, S> p_227182_1_, S p_227182_2_) -
matches
-
matches
-
checkState
-
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-