Class StatePropertiesPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.StatePropertiesPredicate
-
public class StatePropertiesPredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatePropertiesPredicate.Builder
(package private) static class
StatePropertiesPredicate.ExactMatcher
(package private) static class
StatePropertiesPredicate.Matcher
(package private) static class
StatePropertiesPredicate.RangedMacher
-
Field Summary
Fields Modifier and Type Field Description static StatePropertiesPredicate
ANY
private java.util.List<StatePropertiesPredicate.Matcher>
properties
-
Constructor Summary
Constructors Modifier Constructor Description private
StatePropertiesPredicate(java.util.List<StatePropertiesPredicate.Matcher> p_i225790_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkState(StateContainer<?,?> p_227183_1_, java.util.function.Consumer<java.lang.String> p_227183_2_)
static StatePropertiesPredicate
fromJson(com.google.gson.JsonElement p_227186_0_)
private static StatePropertiesPredicate.Matcher
fromJson(java.lang.String p_227188_0_, com.google.gson.JsonElement p_227188_1_)
private static java.lang.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
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final StatePropertiesPredicate ANY
-
properties
private final java.util.List<StatePropertiesPredicate.Matcher> properties
-
-
Constructor Detail
-
StatePropertiesPredicate
private StatePropertiesPredicate(java.util.List<StatePropertiesPredicate.Matcher> p_i225790_1_)
-
-
Method Detail
-
fromJson
private static StatePropertiesPredicate.Matcher fromJson(java.lang.String p_227188_0_, com.google.gson.JsonElement p_227188_1_)
-
getStringOrNull
@Nullable private static java.lang.String getStringOrNull(com.google.gson.JsonElement p_227189_0_)
-
matches
public <S extends StateHolder<?,S>> boolean matches(StateContainer<?,S> p_227182_1_, S p_227182_2_)
-
matches
public boolean matches(BlockState p_227181_1_)
-
matches
public boolean matches(FluidState p_227185_1_)
-
checkState
public void checkState(StateContainer<?,?> p_227183_1_, java.util.function.Consumer<java.lang.String> p_227183_2_)
-
fromJson
public static StatePropertiesPredicate fromJson(@Nullable com.google.gson.JsonElement p_227186_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-