Record Class DistancePredicate

java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.DistancePredicate
Record Components:
x -
y -
z -
horizontal -
absolute -

public record DistancePredicate(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z, NumberRange.DoubleRange horizontal, NumberRange.DoubleRange absolute) extends Record
Mappings:
Namespace Name
official bh
intermediary net/minecraft/class_2025
named net/minecraft/predicate/entity/DistancePredicate
official b
intermediary comp_1743
named x
official c
intermediary comp_1744
named y
official d
intermediary comp_1745
named z
official e
intermediary comp_1746
named horizontal
official f
intermediary comp_1747
named absolute
  • Field Details

    • x

      private final NumberRange.DoubleRange x
      The field for the x record component.
    • y

      private final NumberRange.DoubleRange y
      The field for the y record component.
    • z

      private final NumberRange.DoubleRange z
      The field for the z record component.
    • horizontal

      private final NumberRange.DoubleRange horizontal
      The field for the horizontal record component.
    • absolute

      private final NumberRange.DoubleRange absolute
      The field for the absolute record component.
    • CODEC

      public static final com.mojang.serialization.Codec<DistancePredicate> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lbh;a:Lcom/mojang/serialization/Codec;
      intermediary field_45728 Lnet/minecraft/class_2025;field_45728:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/predicate/entity/DistancePredicate;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • horizontal

      public static DistancePredicate horizontal(NumberRange.DoubleRange horizontal)
      Mappings:
      Namespace Name Mixin selector
      official a Lbh;a(Lcl$c;)Lbh;
      intermediary method_8860 Lnet/minecraft/class_2025;method_8860(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_2025;
      named horizontal Lnet/minecraft/predicate/entity/DistancePredicate;horizontal(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/DistancePredicate;
    • y

      Mappings:
      Namespace Name Mixin selector
      official b Lbh;b(Lcl$c;)Lbh;
      intermediary method_8856 Lnet/minecraft/class_2025;method_8856(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_2025;
      named y Lnet/minecraft/predicate/entity/DistancePredicate;y(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/DistancePredicate;
    • absolute

      public static DistancePredicate absolute(NumberRange.DoubleRange absolute)
      Mappings:
      Namespace Name Mixin selector
      official c Lbh;c(Lcl$c;)Lbh;
      intermediary method_37223 Lnet/minecraft/class_2025;method_37223(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_2025;
      named absolute Lnet/minecraft/predicate/entity/DistancePredicate;absolute(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/DistancePredicate;
    • test

      public boolean test(double x0, double y0, double z0, double x1, double y1, double z1)
      Mappings:
      Namespace Name Mixin selector
      official a Lbh;a(DDDDDD)Z
      intermediary method_8859 Lnet/minecraft/class_2025;method_8859(DDDDDD)Z
      named test Lnet/minecraft/predicate/entity/DistancePredicate;test(DDDDDD)Z
    • fromJson

      public static Optional<DistancePredicate> fromJson(@Nullable @Nullable com.google.gson.JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbh;a(Lcom/google/gson/JsonElement;)Ljava/util/Optional;
      intermediary method_8857 Lnet/minecraft/class_2025;method_8857(Lcom/google/gson/JsonElement;)Ljava/util/Optional;
      named fromJson Lnet/minecraft/predicate/entity/DistancePredicate;fromJson(Lcom/google/gson/JsonElement;)Ljava/util/Optional;
    • toJson

      public com.google.gson.JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lbh;a()Lcom/google/gson/JsonElement;
      intermediary method_8858 Lnet/minecraft/class_2025;method_8858()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/entity/DistancePredicate;toJson()Lcom/google/gson/JsonElement;
    • 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
    • horizontal

      public NumberRange.DoubleRange horizontal()
      Returns the value of the horizontal record component.
      Returns:
      the value of the horizontal record component
    • absolute

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