Record Class LocationPredicate.PositionRange

java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.LocationPredicate.PositionRange
Record Components:
x -
y -
z -
Enclosing class:
LocationPredicate

private static record LocationPredicate.PositionRange(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z) extends Record
Mappings:
Namespace Name
official ci$b
intermediary net/minecraft/class_2090$class_8747
named net/minecraft/predicate/entity/LocationPredicate$PositionRange
official b
intermediary comp_1802
named x
official c
intermediary comp_1803
named y
official d
intermediary comp_1804
named z
  • 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.
    • CODEC

      public static final com.mojang.serialization.Codec<LocationPredicate.PositionRange> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lci$b;a:Lcom/mojang/serialization/Codec;
      intermediary field_45761 Lnet/minecraft/class_2090$class_8747;field_45761:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/predicate/entity/LocationPredicate$PositionRange;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lci$b;a(Lck$c;Lck$c;Lck$c;)Ljava/util/Optional;
      intermediary method_53185 Lnet/minecraft/class_2090$class_8747;method_53185(Lnet/minecraft/class_2096$class_2099;Lnet/minecraft/class_2096$class_2099;Lnet/minecraft/class_2096$class_2099;)Ljava/util/Optional;
      named create Lnet/minecraft/predicate/entity/LocationPredicate$PositionRange;create(Lnet/minecraft/predicate/NumberRange$DoubleRange;Lnet/minecraft/predicate/NumberRange$DoubleRange;Lnet/minecraft/predicate/NumberRange$DoubleRange;)Ljava/util/Optional;
    • test

      public boolean test(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official a Lci$b;a(DDD)Z
      intermediary method_53184 Lnet/minecraft/class_2090$class_8747;method_53184(DDD)Z
      named test Lnet/minecraft/predicate/entity/LocationPredicate$PositionRange;test(DDD)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