Record Class FloatRangePredicate.Point
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.loot.FloatRangePredicate.Point
- All Implemented Interfaces:
FloatRangePredicate, Validatable
- Enclosing interface:
FloatRangePredicate
public static record FloatRangePredicate.Point(Holder<ContextFloatProvider> value)
extends Record
implements FloatRangePredicate
-
Nested Class Summary
Nested classes/interfaces inherited from interface FloatRangePredicate
FloatRangePredicate.Line, FloatRangePredicate.Point -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Holder<ContextFloatProvider> The field for thevaluerecord component.Fields inherited from interface FloatRangePredicate
CODEC, LINE_CODEC, POINT_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionPoint(Holder<ContextFloatProvider> value) Creates an instance of aPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate floatcomputeValue(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, float 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 FloatRangePredicate
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 interfaceFloatRangePredicate
-
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
-