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/MovementPredicateintermediary net/minecraft/class_9750official djnamed xintermediary comp_2772official bnamed yintermediary comp_2773official cnamed zintermediary comp_2774official dnamed speedintermediary comp_2775official enamed horizontalSpeedintermediary comp_2776official fnamed verticalSpeedintermediary comp_2777official gnamed fallDistanceintermediary comp_2778official h
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionMovementPredicate(NumberRange.DoubleRange doubleRange, NumberRange.DoubleRange doubleRange2, NumberRange.DoubleRange doubleRange3, NumberRange.DoubleRange doubleRange4, NumberRange.DoubleRange doubleRange5, NumberRange.DoubleRange doubleRange6, NumberRange.DoubleRange doubleRange7) -
Method Summary
Modifier 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
-
x
The field for thexrecord component. -
y
The field for theyrecord component. -
z
The field for thezrecord component. -
speed
The field for thespeedrecord component. -
horizontalSpeed
The field for thehorizontalSpeedrecord component. -
verticalSpeed
The field for theverticalSpeedrecord component. -
fallDistance
The field for thefallDistancerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/entity/MovementPredicate;CODEC:Lcom/mojang/serialization/Codec;intermediary field_51786Lnet/minecraft/class_9750;field_51786:Lcom/mojang/serialization/Codec;official aLdj;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MovementPredicate
public 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 speedLnet/minecraft/predicate/entity/MovementPredicate;speed(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/MovementPredicate;intermediary method_60279Lnet/minecraft/class_9750;method_60279(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_9750;official aLdj;a(Ldh$c;)Ldj;
-
horizontalSpeed
- Mappings:
Namespace Name Mixin selector named horizontalSpeedLnet/minecraft/predicate/entity/MovementPredicate;horizontalSpeed(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/MovementPredicate;intermediary method_60280Lnet/minecraft/class_9750;method_60280(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_9750;official bLdj;b(Ldh$c;)Ldj;
-
verticalSpeed
- Mappings:
Namespace Name Mixin selector named verticalSpeedLnet/minecraft/predicate/entity/MovementPredicate;verticalSpeed(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/MovementPredicate;intermediary method_60281Lnet/minecraft/class_9750;method_60281(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_9750;official cLdj;c(Ldh$c;)Ldj;
-
fallDistance
- Mappings:
Namespace Name Mixin selector named fallDistanceLnet/minecraft/predicate/entity/MovementPredicate;fallDistance(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/MovementPredicate;intermediary method_60282Lnet/minecraft/class_9750;method_60282(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_9750;official dLdj;d(Ldh$c;)Ldj;
-
test
public boolean test(double x, double y, double z, double fallDistance) - Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/MovementPredicate;test(DDDD)Zintermediary method_60277Lnet/minecraft/class_9750;method_60277(DDDD)Zofficial aLdj;a(DDDD)Z
-
toString
Returns 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. -
hashCode
public 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. -
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). -
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
speed
Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-
horizontalSpeed
Returns the value of thehorizontalSpeedrecord component.- Returns:
- the value of the
horizontalSpeedrecord component
-
verticalSpeed
Returns the value of theverticalSpeedrecord component.- Returns:
- the value of the
verticalSpeedrecord component
-
fallDistance
Returns the value of thefallDistancerecord component.- Returns:
- the value of the
fallDistancerecord component
-