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 dl
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 Details

  • Constructor Details

  • Method Details

    • speed

      public static MovementPredicate speed(NumberRange.DoubleRange 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 Ldl;a(Ldj$c;)Ldl;
    • horizontalSpeed

      public static MovementPredicate horizontalSpeed(NumberRange.DoubleRange 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 Ldl;b(Ldj$c;)Ldl;
    • verticalSpeed

      public static MovementPredicate verticalSpeed(NumberRange.DoubleRange 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 Ldl;c(Ldj$c;)Ldl;
    • fallDistance

      public static MovementPredicate fallDistance(NumberRange.DoubleRange 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 Ldl;d(Ldj$c;)Ldl;
    • 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 Ldl;a(DDDD)Z
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • x

      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • z

      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • speed

      public NumberRange.DoubleRange speed()
      Returns the value of the speed record component.
      Returns:
      the value of the speed record component
    • horizontalSpeed

      public NumberRange.DoubleRange horizontalSpeed()
      Returns the value of the horizontalSpeed record component.
      Returns:
      the value of the horizontalSpeed record component
    • verticalSpeed

      public NumberRange.DoubleRange verticalSpeed()
      Returns the value of the verticalSpeed record component.
      Returns:
      the value of the verticalSpeed record component
    • fallDistance

      public NumberRange.DoubleRange fallDistance()
      Returns the value of the fallDistance record component.
      Returns:
      the value of the fallDistance record component