Record Class IntRangePredicate.Point
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.loot.IntRangePredicate.Point
- All Implemented Interfaces:
IntRangePredicate, Validatable
- Enclosing interface:
IntRangePredicate
public static record IntRangePredicate.Point(Holder<ContextIntProvider> value)
extends Record
implements IntRangePredicate
-
Nested Class Summary
Nested classes/interfaces inherited from interface IntRangePredicate
IntRangePredicate.Line, IntRangePredicate.Point -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Holder<ContextIntProvider> The field for thevaluerecord component.Fields inherited from interface IntRangePredicate
CODEC, LINE_CODEC, POINT_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionPoint(Holder<ContextIntProvider> value) Creates an instance of aPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate intcomputeValue(LootContext context) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantest(LootContext context, int input) final StringtoString()Returns a string representation of this record class.voidvalidate(ValidationContext context) value()Returns the value of thevaluerecord component.Methods inherited from interface IntRangePredicate
test
-
Field Details
-
value
The field for thevaluerecord component.
-
-
Constructor Details
-
Point
Creates an instance of aPointrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
validate
- Specified by:
validatein interfaceValidatable
-
computeValue
-
test
- Specified by:
testin interfaceIntRangePredicate
-
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-