public class StatePropertiesPredicate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StatePropertiesPredicate.Builder |
(package private) static class |
StatePropertiesPredicate.ExactMatcher |
(package private) static class |
StatePropertiesPredicate.Matcher |
(package private) static class |
StatePropertiesPredicate.RangedMacher |
Modifier and Type | Field and Description |
---|---|
static StatePropertiesPredicate |
EMPTY |
private java.util.List<StatePropertiesPredicate.Matcher> |
matchers |
Modifier | Constructor and Description |
---|---|
private |
StatePropertiesPredicate(java.util.List<StatePropertiesPredicate.Matcher> p_i225790_1_) |
Modifier and Type | Method and Description |
---|---|
static StatePropertiesPredicate |
deserializeProperties(com.google.gson.JsonElement p_227186_0_) |
private static StatePropertiesPredicate.Matcher |
deserializeProperty(java.lang.String p_227188_0_,
com.google.gson.JsonElement p_227188_1_) |
void |
forEachNotPresent(StateContainer<?,?> p_227183_1_,
java.util.function.Consumer<java.lang.String> p_227183_2_) |
private static java.lang.String |
getNullableString(com.google.gson.JsonElement p_227189_0_) |
boolean |
matches(BlockState p_227181_1_) |
boolean |
matches(IFluidState p_227185_1_) |
<S extends IStateHolder<S>> |
matchesAll(StateContainer<?,S> p_227182_1_,
S p_227182_2_) |
com.google.gson.JsonElement |
toJsonElement() |
public static final StatePropertiesPredicate EMPTY
private final java.util.List<StatePropertiesPredicate.Matcher> matchers
private StatePropertiesPredicate(java.util.List<StatePropertiesPredicate.Matcher> p_i225790_1_)
private static StatePropertiesPredicate.Matcher deserializeProperty(java.lang.String p_227188_0_, com.google.gson.JsonElement p_227188_1_)
@Nullable private static java.lang.String getNullableString(com.google.gson.JsonElement p_227189_0_)
public <S extends IStateHolder<S>> boolean matchesAll(StateContainer<?,S> p_227182_1_, S p_227182_2_)
public boolean matches(BlockState p_227181_1_)
public boolean matches(IFluidState p_227185_1_)
public void forEachNotPresent(StateContainer<?,?> p_227183_1_, java.util.function.Consumer<java.lang.String> p_227183_2_)
public static StatePropertiesPredicate deserializeProperties(@Nullable com.google.gson.JsonElement p_227186_0_)
public com.google.gson.JsonElement toJsonElement()