Class StatePropertiesPredicate.Matcher
- java.lang.Object
-
- net.minecraft.advancements.criterion.StatePropertiesPredicate.Matcher
-
- Direct Known Subclasses:
StatePropertiesPredicate.ExactMatcher
,StatePropertiesPredicate.RangedMacher
- Enclosing class:
- StatePropertiesPredicate
abstract static class StatePropertiesPredicate.Matcher extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description Matcher(java.lang.String p_i225793_1_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
checkState(StateContainer<?,?> p_227200_1_, java.util.function.Consumer<java.lang.String> p_227200_2_)
java.lang.String
getName()
<S extends StateHolder<?,S>>
booleanmatch(StateContainer<?,S> p_227199_1_, S p_227199_2_)
protected abstract <T extends java.lang.Comparable<T>>
booleanmatch(StateHolder<?,?> p_225554_1_, Property<T> p_225554_2_)
abstract com.google.gson.JsonElement
toJson()
-
-
-
Method Detail
-
match
public <S extends StateHolder<?,S>> boolean match(StateContainer<?,S> p_227199_1_, S p_227199_2_)
-
match
protected abstract <T extends java.lang.Comparable<T>> boolean match(StateHolder<?,?> p_225554_1_, Property<T> p_225554_2_)
-
toJson
public abstract com.google.gson.JsonElement toJson()
-
getName
public java.lang.String getName()
-
checkState
public void checkState(StateContainer<?,?> p_227200_1_, java.util.function.Consumer<java.lang.String> p_227200_2_)
-
-