Record Class NumberRange.FloatRange

java.lang.Object
java.lang.Record
net.minecraft.predicate.NumberRange.FloatRange
Record Components:
getMin -
getMax -
squaredMin -
squaredMax -
All Implemented Interfaces:
NumberRange<Double>
Enclosing interface:
NumberRange<T extends Number>

public static record NumberRange.FloatRange(Optional<Double> getMin, Optional<Double> getMax, Optional<Double> squaredMin, Optional<Double> squaredMax) extends Record implements NumberRange<Double>
Mappings:
Namespace Name
official cj$c
intermediary net/minecraft/class_2096$class_2099
named net/minecraft/predicate/NumberRange$FloatRange
official e
intermediary comp_1805
named getMin
official f
intermediary comp_1806
named getMax
official g
intermediary comp_1807
named squaredMin
official h
intermediary comp_1808
named squaredMax
  • Field Details

    • getMin

      private final Optional<Double> getMin
      The field for the getMin record component.
    • getMax

      private final Optional<Double> getMax
      The field for the getMax record component.
    • squaredMin

      private final Optional<Double> squaredMin
      The field for the squaredMin record component.
    • squaredMax

      private final Optional<Double> squaredMax
      The field for the squaredMax record component.
    • ANY

      public static final NumberRange.FloatRange ANY
      Mappings:
      Namespace Name Mixin selector
      official c Lcj$c;c:Lcj$c;
      intermediary field_9705 Lnet/minecraft/class_2096$class_2099;field_9705:Lnet/minecraft/class_2096$class_2099;
      named ANY Lnet/minecraft/predicate/NumberRange$FloatRange;ANY:Lnet/minecraft/predicate/NumberRange$FloatRange;
    • field_45762

      public static final com.mojang.serialization.Codec<NumberRange.FloatRange> field_45762
      Mappings:
      Namespace Name Mixin selector
      official d Lcj$c;d:Lcom/mojang/serialization/Codec;
      intermediary field_45762 Lnet/minecraft/class_2096$class_2099;field_45762:Lcom/mojang/serialization/Codec;
      named field_45762 Lnet/minecraft/predicate/NumberRange$FloatRange;field_45762:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • create

      private static NumberRange.FloatRange create(com.mojang.brigadier.StringReader reader, Optional<Double> optional, Optional<Double> optional2) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lcj$c;a(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Lcj$c;
      intermediary method_9046 Lnet/minecraft/class_2096$class_2099;method_9046(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_2096$class_2099;
      named create Lnet/minecraft/predicate/NumberRange$FloatRange;create(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/predicate/NumberRange$FloatRange;
    • square

      private static Optional<Double> square(Optional<Double> optional)
      Mappings:
      Namespace Name Mixin selector
      official a Lcj$c;a(Ljava/util/Optional;)Ljava/util/Optional;
      intermediary method_9044 Lnet/minecraft/class_2096$class_2099;method_9044(Ljava/util/Optional;)Ljava/util/Optional;
      named square Lnet/minecraft/predicate/NumberRange$FloatRange;square(Ljava/util/Optional;)Ljava/util/Optional;
    • exactly

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

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

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

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

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

      public boolean testSqrt(double value)
      Mappings:
      Namespace Name Mixin selector
      official e Lcj$c;e(D)Z
      intermediary method_9045 Lnet/minecraft/class_2096$class_2099;method_9045(D)Z
      named testSqrt Lnet/minecraft/predicate/NumberRange$FloatRange;testSqrt(D)Z
    • fromJson

      public static NumberRange.FloatRange fromJson(@Nullable @Nullable JsonElement element)
      Mappings:
      Namespace Name Mixin selector
      official a Lcj$c;a(Lcom/google/gson/JsonElement;)Lcj$c;
      intermediary method_9051 Lnet/minecraft/class_2096$class_2099;method_9051(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2096$class_2099;
      named fromJson Lnet/minecraft/predicate/NumberRange$FloatRange;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/NumberRange$FloatRange;
    • method_53196

      public JsonElement method_53196()
      Mappings:
      Namespace Name Mixin selector
      official e Lcj$c;e()Lcom/google/gson/JsonElement;
      intermediary method_53196 Lnet/minecraft/class_2096$class_2099;method_53196()Lcom/google/gson/JsonElement;
      named method_53196 Lnet/minecraft/predicate/NumberRange$FloatRange;method_53196()Lcom/google/gson/JsonElement;
    • parse

      public static NumberRange.FloatRange parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lcj$c;a(Lcom/mojang/brigadier/StringReader;)Lcj$c;
      intermediary method_9049 Lnet/minecraft/class_2096$class_2099;method_9049(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2096$class_2099;
      named parse Lnet/minecraft/predicate/NumberRange$FloatRange;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$FloatRange;
    • parse

      public static NumberRange.FloatRange parse(com.mojang.brigadier.StringReader reader, Function<Double,Double> mapper) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lcj$c;a(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Lcj$c;
      intermediary method_9048 Lnet/minecraft/class_2096$class_2099;method_9048(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Lnet/minecraft/class_2096$class_2099;
      named parse Lnet/minecraft/predicate/NumberRange$FloatRange;parse(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Lnet/minecraft/predicate/NumberRange$FloatRange;
    • 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.
    • getMin

      public Optional<Double> getMin()
      Specified by:
      getMin in interface NumberRange<Double>
      Mappings:
      Namespace Name Mixin selector
      official a Lcj;a()Ljava/util/Optional;
      intermediary comp_1805 Lnet/minecraft/class_2096;comp_1805()Ljava/util/Optional;
      named getMin Lnet/minecraft/predicate/NumberRange;getMin()Ljava/util/Optional;
    • getMax

      public Optional<Double> getMax()
      Specified by:
      getMax in interface NumberRange<Double>
      Mappings:
      Namespace Name Mixin selector
      official b Lcj;b()Ljava/util/Optional;
      intermediary comp_1806 Lnet/minecraft/class_2096;comp_1806()Ljava/util/Optional;
      named getMax Lnet/minecraft/predicate/NumberRange;getMax()Ljava/util/Optional;
    • squaredMin

      public Optional<Double> squaredMin()
      Returns the value of the squaredMin record component.
      Returns:
      the value of the squaredMin record component
    • squaredMax

      public Optional<Double> squaredMax()
      Returns the value of the squaredMax record component.
      Returns:
      the value of the squaredMax record component