Record Class StatePropertiesPredicate.RangedMatcher
java.lang.Object
java.lang.Record
net.minecraft.advancements.criterion.StatePropertiesPredicate.RangedMatcher
- All Implemented Interfaces:
StatePropertiesPredicate.ValueMatcher
- Enclosing class:
StatePropertiesPredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StatePropertiesPredicate.RangedMatcher> The field for themaxValuerecord component.The field for theminValuerecord component.static final StreamCodec<io.netty.buffer.ByteBuf, StatePropertiesPredicate.RangedMatcher> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRangedMatcher(Optional<String> minValue, Optional<String> maxValue) Creates an instance of aRangedMatcherrecord class. -
Method Summary
Modifier 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<?, ?> state, Property<T> property) 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
-
minValue
-
maxValue
-
CODEC
-
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, StatePropertiesPredicate.RangedMatcher> STREAM_CODEC
-
-
Constructor Details
-
RangedMatcher
-
-
Method Details
-
match
- Specified by:
matchin interfaceStatePropertiesPredicate.ValueMatcher
-
toString
-
hashCode
-
equals
Indicates 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). -
minValue
-
maxValue
-