Record Class NumberRange.DoubleRange

java.lang.Object
java.lang.Record
net.minecraft.predicate.NumberRange.DoubleRange
Record Components:
bounds -
boundsSqr -
All Implemented Interfaces:
NumberRange<Double>
Enclosing interface:
NumberRange<T extends Number & Comparable<T>>

public static record NumberRange.DoubleRange(NumberRange.Bounds<Double> bounds, NumberRange.Bounds<Double> boundsSqr) extends Record implements NumberRange<Double>
Mappings:
Namespace Name
named net/minecraft/predicate/NumberRange$DoubleRange
intermediary net/minecraft/class_2096$class_2099
official cx$b
named bounds
intermediary comp_4771
official f
named boundsSqr
intermediary comp_4772
official g
  • Field Details

    • bounds

      private final NumberRange.Bounds<Double> bounds
      The field for the bounds record component.
    • boundsSqr

      private final NumberRange.Bounds<Double> boundsSqr
      The field for the boundsSqr record component.
    • ANY

      public static final NumberRange.DoubleRange ANY
      Mappings:
      Namespace Name Mixin selector
      named ANY Lnet/minecraft/predicate/NumberRange$DoubleRange;ANY:Lnet/minecraft/predicate/NumberRange$DoubleRange;
      intermediary field_9705 Lnet/minecraft/class_2096$class_2099;field_9705:Lnet/minecraft/class_2096$class_2099;
      official c Lcx$b;c:Lcx$b;
    • CODEC

      public static final com.mojang.serialization.Codec<NumberRange.DoubleRange> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/predicate/NumberRange$DoubleRange;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45762 Lnet/minecraft/class_2096$class_2099;field_45762:Lcom/mojang/serialization/Codec;
      official d Lcx$b;d:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,NumberRange.DoubleRange> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/predicate/NumberRange$DoubleRange;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_56293 Lnet/minecraft/class_2096$class_2099;field_56293:Lnet/minecraft/class_9139;
      official e Lcx$b;e:Laae;
  • Constructor Details

    • DoubleRange

      private DoubleRange(NumberRange.Bounds<Double> bounds)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/predicate/NumberRange$DoubleRange;<init>(Lnet/minecraft/predicate/NumberRange$Bounds;)V
      intermediary <init> Lnet/minecraft/class_2096$class_2099;<init>(Lnet/minecraft/class_2096$class_11893;)V
      official <init> Lcx$b;<init>(Lcx$a;)V
    • DoubleRange

      public DoubleRange(NumberRange.Bounds<Double> bounds, NumberRange.Bounds<Double> bounds2)
  • Method Details

    • exactly

      public static NumberRange.DoubleRange exactly(double value)
      Mappings:
      Namespace Name Mixin selector
      named exactly Lnet/minecraft/predicate/NumberRange$DoubleRange;exactly(D)Lnet/minecraft/predicate/NumberRange$DoubleRange;
      intermediary method_35284 Lnet/minecraft/class_2096$class_2099;method_35284(D)Lnet/minecraft/class_2096$class_2099;
      official a Lcx$b;a(D)Lcx$b;
    • between

      public static NumberRange.DoubleRange between(double min, double max)
      Mappings:
      Namespace Name Mixin selector
      named between Lnet/minecraft/predicate/NumberRange$DoubleRange;between(DD)Lnet/minecraft/predicate/NumberRange$DoubleRange;
      intermediary method_35285 Lnet/minecraft/class_2096$class_2099;method_35285(DD)Lnet/minecraft/class_2096$class_2099;
      official a Lcx$b;a(DD)Lcx$b;
    • atLeast

      public static NumberRange.DoubleRange atLeast(double value)
      Mappings:
      Namespace Name Mixin selector
      named atLeast Lnet/minecraft/predicate/NumberRange$DoubleRange;atLeast(D)Lnet/minecraft/predicate/NumberRange$DoubleRange;
      intermediary method_9050 Lnet/minecraft/class_2096$class_2099;method_9050(D)Lnet/minecraft/class_2096$class_2099;
      official b Lcx$b;b(D)Lcx$b;
    • atMost

      public static NumberRange.DoubleRange atMost(double value)
      Mappings:
      Namespace Name Mixin selector
      named atMost Lnet/minecraft/predicate/NumberRange$DoubleRange;atMost(D)Lnet/minecraft/predicate/NumberRange$DoubleRange;
      intermediary method_35286 Lnet/minecraft/class_2096$class_2099;method_35286(D)Lnet/minecraft/class_2096$class_2099;
      official c Lcx$b;c(D)Lcx$b;
    • test

      public boolean test(double value)
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/NumberRange$DoubleRange;test(D)Z
      intermediary method_9047 Lnet/minecraft/class_2096$class_2099;method_9047(D)Z
      official d Lcx$b;d(D)Z
    • testSqrt

      public boolean testSqrt(double value)
      Mappings:
      Namespace Name Mixin selector
      named testSqrt Lnet/minecraft/predicate/NumberRange$DoubleRange;testSqrt(D)Z
      intermediary method_9045 Lnet/minecraft/class_2096$class_2099;method_9045(D)Z
      official e Lcx$b;e(D)Z
    • parse

      public static NumberRange.DoubleRange parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/predicate/NumberRange$DoubleRange;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$DoubleRange;
      intermediary method_9049 Lnet/minecraft/class_2096$class_2099;method_9049(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2096$class_2099;
      official a Lcx$b;a(Lcom/mojang/brigadier/StringReader;)Lcx$b;
    • 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.
    • bounds

      public NumberRange.Bounds<Double> bounds()
      Returns the value of the bounds record component.
      Specified by:
      bounds in interface NumberRange<Double>
      Returns:
      the value of the bounds record component
    • boundsSqr

      public NumberRange.Bounds<Double> boundsSqr()
      Returns the value of the boundsSqr record component.
      Returns:
      the value of the boundsSqr record component