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 dj
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 Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<MovementPredicate> private final NumberRange.DoubleRange
The field for thefallDistance
record component.private final NumberRange.DoubleRange
The field for thehorizontalSpeed
record component.private final NumberRange.DoubleRange
The field for thespeed
record component.private final NumberRange.DoubleRange
The field for theverticalSpeed
record component.private final NumberRange.DoubleRange
The field for thex
record component.private final NumberRange.DoubleRange
The field for they
record component.private final NumberRange.DoubleRange
The field for thez
record component. -
Constructor Summary
ConstructorDescriptionMovementPredicate
(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 boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefallDistance
record component.static MovementPredicate
fallDistance
(NumberRange.DoubleRange fallDistance) final int
hashCode()
Returns a hash code value for this object.Returns the value of thehorizontalSpeed
record component.static MovementPredicate
horizontalSpeed
(NumberRange.DoubleRange horizontalSpeed) speed()
Returns the value of thespeed
record component.static MovementPredicate
speed
(NumberRange.DoubleRange speed) boolean
test
(double x, double y, double z, double fallDistance) final String
toString()
Returns a string representation of this record class.Returns the value of theverticalSpeed
record component.static MovementPredicate
verticalSpeed
(NumberRange.DoubleRange verticalSpeed) x()
Returns the value of thex
record component.y()
Returns the value of they
record component.z()
Returns the value of thez
record component.
-
Field Details
-
x
The field for thex
record component. -
y
The field for they
record component. -
z
The field for thez
record component. -
speed
The field for thespeed
record component. -
horizontalSpeed
The field for thehorizontalSpeed
record component. -
verticalSpeed
The field for theverticalSpeed
record component. -
fallDistance
The field for thefallDistance
record 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
Ldj;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 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
Ldj;a(Ldh$c;)Ldj;
-
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
Ldj;b(Ldh$c;)Ldj;
-
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
Ldj;c(Ldh$c;)Ldj;
-
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
Ldj;d(Ldh$c;)Ldj;
-
test
public 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
Ldj;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 thex
record component.- Returns:
- the value of the
x
record component
-
y
Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
z
Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-
speed
Returns the value of thespeed
record component.- Returns:
- the value of the
speed
record component
-
horizontalSpeed
Returns the value of thehorizontalSpeed
record component.- Returns:
- the value of the
horizontalSpeed
record component
-
verticalSpeed
Returns the value of theverticalSpeed
record component.- Returns:
- the value of the
verticalSpeed
record component
-
fallDistance
Returns the value of thefallDistance
record component.- Returns:
- the value of the
fallDistance
record component
-