Record Class StatePropertiesPredicate.RangedMatcher
java.lang.Object
java.lang.Record
net.minecraft.advancements.critereon.StatePropertiesPredicate.RangedMatcher
- All Implemented Interfaces:
- StatePropertiesPredicate.ValueMatcher
- Enclosing class:
- StatePropertiesPredicate
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRangedMatcher(Optional<String> minValue, Optional<String> maxValue) Creates an instance of aRangedMatcherrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<T extends Comparable<T>>
 booleanmatch(StateHolder<?, ?> p_298772_, Property<T> p_298371_) maxValue()Returns the value of themaxValuerecord component.minValue()Returns the value of theminValuerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
minValueThe field for theminValuerecord component.
- 
maxValueThe field for themaxValuerecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
RangedMatcherCreates an instance of aRangedMatcherrecord class.- Parameters:
- minValue- the value for the- minValuerecord component
- maxValue- the value for the- maxValuerecord component
 
 
- 
- 
Method Details- 
match- Specified by:
- matchin interface- StatePropertiesPredicate.ValueMatcher
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
minValueReturns the value of theminValuerecord component.- Returns:
- the value of the minValuerecord component
 
- 
maxValueReturns the value of themaxValuerecord component.- Returns:
- the value of the maxValuerecord component
 
 
-