Package net.minecraft.predicate.entity
Record Class MovementPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.MovementPredicate
- Record Components:
- x-
- y-
- z-
- speed-
- horizontalSpeed-
- verticalSpeed-
- fallDistance-
public record MovementPredicate(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z, NumberRange.DoubleRange speed, NumberRange.DoubleRange horizontalSpeed, NumberRange.DoubleRange verticalSpeed, NumberRange.DoubleRange fallDistance)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/entity/MovementPredicate- intermediary - net/minecraft/class_9750- official - dm- named - x- intermediary - comp_2772- official - b- named - y- intermediary - comp_2773- official - c- named - z- intermediary - comp_2774- official - d- named - speed- intermediary - comp_2775- official - e- named - horizontalSpeed- intermediary - comp_2776- official - f- named - verticalSpeed- intermediary - comp_2777- official - g- named - fallDistance- intermediary - comp_2778- official - h
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MovementPredicate> private final NumberRange.DoubleRangeThe field for thefallDistancerecord component.private final NumberRange.DoubleRangeThe field for thehorizontalSpeedrecord component.private final NumberRange.DoubleRangeThe field for thespeedrecord component.private final NumberRange.DoubleRangeThe field for theverticalSpeedrecord component.private final NumberRange.DoubleRangeThe field for thexrecord component.private final NumberRange.DoubleRangeThe field for theyrecord component.private final NumberRange.DoubleRangeThe field for thezrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionMovementPredicate(NumberRange.DoubleRange doubleRange, NumberRange.DoubleRange doubleRange2, NumberRange.DoubleRange doubleRange3, NumberRange.DoubleRange doubleRange4, NumberRange.DoubleRange doubleRange5, NumberRange.DoubleRange doubleRange6, NumberRange.DoubleRange doubleRange7) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallDistancerecord component.static MovementPredicatefallDistance(NumberRange.DoubleRange fallDistance) final inthashCode()Returns a hash code value for this object.Returns the value of thehorizontalSpeedrecord component.static MovementPredicatehorizontalSpeed(NumberRange.DoubleRange horizontalSpeed) speed()Returns the value of thespeedrecord component.static MovementPredicatespeed(NumberRange.DoubleRange speed) booleantest(double x, double y, double z, double fallDistance) final StringtoString()Returns a string representation of this record class.Returns the value of theverticalSpeedrecord component.static MovementPredicateverticalSpeed(NumberRange.DoubleRange verticalSpeed) x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.z()Returns the value of thezrecord component.
- 
Field Details- 
xThe field for thexrecord component.
- 
yThe field for theyrecord component.
- 
zThe field for thezrecord component.
- 
speedThe field for thespeedrecord component.
- 
horizontalSpeedThe field for thehorizontalSpeedrecord component.
- 
verticalSpeedThe field for theverticalSpeedrecord component.
- 
fallDistanceThe field for thefallDistancerecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/predicate/entity/MovementPredicate;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_51786- Lnet/minecraft/class_9750;field_51786:Lcom/mojang/serialization/Codec;- official - a- Ldm;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
MovementPredicatepublic MovementPredicate(NumberRange.DoubleRange doubleRange, NumberRange.DoubleRange doubleRange2, NumberRange.DoubleRange doubleRange3, NumberRange.DoubleRange doubleRange4, NumberRange.DoubleRange doubleRange5, NumberRange.DoubleRange doubleRange6, NumberRange.DoubleRange doubleRange7) 
 
- 
- 
Method Details- 
speed- Mappings:
- Namespace - Name - Mixin selector - named - speed- Lnet/minecraft/predicate/entity/MovementPredicate;speed(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/MovementPredicate;- intermediary - method_60279- Lnet/minecraft/class_9750;method_60279(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_9750;- official - a- Ldm;a(Ldk$c;)Ldm;
 
- 
horizontalSpeed- Mappings:
- Namespace - Name - Mixin selector - named - horizontalSpeed- Lnet/minecraft/predicate/entity/MovementPredicate;horizontalSpeed(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/MovementPredicate;- intermediary - method_60280- Lnet/minecraft/class_9750;method_60280(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_9750;- official - b- Ldm;b(Ldk$c;)Ldm;
 
- 
verticalSpeed- Mappings:
- Namespace - Name - Mixin selector - named - verticalSpeed- Lnet/minecraft/predicate/entity/MovementPredicate;verticalSpeed(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/MovementPredicate;- intermediary - method_60281- Lnet/minecraft/class_9750;method_60281(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_9750;- official - c- Ldm;c(Ldk$c;)Ldm;
 
- 
fallDistance- Mappings:
- Namespace - Name - Mixin selector - named - fallDistance- Lnet/minecraft/predicate/entity/MovementPredicate;fallDistance(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/MovementPredicate;- intermediary - method_60282- Lnet/minecraft/class_9750;method_60282(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_9750;- official - d- Ldm;d(Ldk$c;)Ldm;
 
- 
testpublic boolean test(double x, double y, double z, double fallDistance) - Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/entity/MovementPredicate;test(DDDD)Z- intermediary - method_60277- Lnet/minecraft/class_9750;method_60277(DDDD)Z- official - a- Ldm;a(DDDD)Z
 
- 
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).
- 
xReturns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
yReturns the value of theyrecord component.- Returns:
- the value of the yrecord component
 
- 
zReturns the value of thezrecord component.- Returns:
- the value of the zrecord component
 
- 
speedReturns the value of thespeedrecord component.- Returns:
- the value of the speedrecord component
 
- 
horizontalSpeedReturns the value of thehorizontalSpeedrecord component.- Returns:
- the value of the horizontalSpeedrecord component
 
- 
verticalSpeedReturns the value of theverticalSpeedrecord component.- Returns:
- the value of the verticalSpeedrecord component
 
- 
fallDistanceReturns the value of thefallDistancerecord component.- Returns:
- the value of the fallDistancerecord component
 
 
-