Record Class NumberRange.class_11893<T extends Number & Comparable<T>>

java.lang.Object
java.lang.Record
net.minecraft.predicate.NumberRange.class_11893<T>
Record Components:
min -
max -
Enclosing interface:
NumberRange<T extends Number & Comparable<T>>

public static record NumberRange.class_11893<T extends Number & Comparable<T>>(Optional<T extends Number & Comparable<T>> min, Optional<T extends Number & Comparable<T>> max) extends Record
Mappings:
Namespace Name
named net/minecraft/predicate/NumberRange$class_11893
intermediary net/minecraft/class_2096$class_11893
official cx$a
named min
intermediary comp_4769
official a
named max
intermediary comp_4770
official b
  • Field Details

  • Constructor Details

  • Method Details

    • method_74108

      public boolean method_74108()
      Mappings:
      Namespace Name Mixin selector
      named method_74108 Lnet/minecraft/predicate/NumberRange$class_11893;method_74108()Z
      intermediary method_74108 Lnet/minecraft/class_2096$class_11893;method_74108()Z
      official a Lcx$a;a()Z
    • method_74120

      public com.mojang.serialization.DataResult<NumberRange.class_11893<T>> method_74120()
      Mappings:
      Namespace Name Mixin selector
      named method_74120 Lnet/minecraft/predicate/NumberRange$class_11893;method_74120()Lcom/mojang/serialization/DataResult;
      intermediary method_74120 Lnet/minecraft/class_2096$class_11893;method_74120()Lcom/mojang/serialization/DataResult;
      official b Lcx$a;b()Lcom/mojang/serialization/DataResult;
    • method_74124

      public boolean method_74124()
      Mappings:
      Namespace Name Mixin selector
      named method_74124 Lnet/minecraft/predicate/NumberRange$class_11893;method_74124()Z
      intermediary method_74124 Lnet/minecraft/class_2096$class_11893;method_74124()Z
      official c Lcx$a;c()Z
    • method_74126

      public Optional<T> method_74126()
      Mappings:
      Namespace Name Mixin selector
      named method_74126 Lnet/minecraft/predicate/NumberRange$class_11893;method_74126()Ljava/util/Optional;
      intermediary method_74126 Lnet/minecraft/class_2096$class_11893;method_74126()Ljava/util/Optional;
      official d Lcx$a;d()Ljava/util/Optional;
    • method_74127

      public static <T extends Number & Comparable<T>> NumberRange.class_11893<T> method_74127()
      Mappings:
      Namespace Name Mixin selector
      named method_74127 Lnet/minecraft/predicate/NumberRange$class_11893;method_74127()Lnet/minecraft/predicate/NumberRange$class_11893;
      intermediary method_74127 Lnet/minecraft/class_2096$class_11893;method_74127()Lnet/minecraft/class_2096$class_11893;
      official e Lcx$a;e()Lcx$a;
    • method_74116

      public static <T extends Number & Comparable<T>> NumberRange.class_11893<T> method_74116(T t)
      Mappings:
      Namespace Name Mixin selector
      named method_74116 Lnet/minecraft/predicate/NumberRange$class_11893;method_74116(Ljava/lang/Number;)Lnet/minecraft/predicate/NumberRange$class_11893;
      intermediary method_74116 Lnet/minecraft/class_2096$class_11893;method_74116(Ljava/lang/Number;)Lnet/minecraft/class_2096$class_11893;
      official a Lcx$a;a(Ljava/lang/Number;)Lcx$a;
    • method_74117

      public static <T extends Number & Comparable<T>> NumberRange.class_11893<T> method_74117(T t, T t2)
      Mappings:
      Namespace Name Mixin selector
      named method_74117 Lnet/minecraft/predicate/NumberRange$class_11893;method_74117(Ljava/lang/Number;Ljava/lang/Number;)Lnet/minecraft/predicate/NumberRange$class_11893;
      intermediary method_74117 Lnet/minecraft/class_2096$class_11893;method_74117(Ljava/lang/Number;Ljava/lang/Number;)Lnet/minecraft/class_2096$class_11893;
      official a Lcx$a;a(Ljava/lang/Number;Ljava/lang/Number;)Lcx$a;
    • method_74123

      public static <T extends Number & Comparable<T>> NumberRange.class_11893<T> method_74123(T t)
      Mappings:
      Namespace Name Mixin selector
      named method_74123 Lnet/minecraft/predicate/NumberRange$class_11893;method_74123(Ljava/lang/Number;)Lnet/minecraft/predicate/NumberRange$class_11893;
      intermediary method_74123 Lnet/minecraft/class_2096$class_11893;method_74123(Ljava/lang/Number;)Lnet/minecraft/class_2096$class_11893;
      official b Lcx$a;b(Ljava/lang/Number;)Lcx$a;
    • method_74125

      public static <T extends Number & Comparable<T>> NumberRange.class_11893<T> method_74125(T t)
      Mappings:
      Namespace Name Mixin selector
      named method_74125 Lnet/minecraft/predicate/NumberRange$class_11893;method_74125(Ljava/lang/Number;)Lnet/minecraft/predicate/NumberRange$class_11893;
      intermediary method_74125 Lnet/minecraft/class_2096$class_11893;method_74125(Ljava/lang/Number;)Lnet/minecraft/class_2096$class_11893;
      official c Lcx$a;c(Ljava/lang/Number;)Lcx$a;
    • method_74119

      public <U extends Number & Comparable<U>> NumberRange.class_11893<U> method_74119(Function<T,U> function)
      Mappings:
      Namespace Name Mixin selector
      named method_74119 Lnet/minecraft/predicate/NumberRange$class_11893;method_74119(Ljava/util/function/Function;)Lnet/minecraft/predicate/NumberRange$class_11893;
      intermediary method_74119 Lnet/minecraft/class_2096$class_11893;method_74119(Ljava/util/function/Function;)Lnet/minecraft/class_2096$class_11893;
      official a Lcx$a;a(Ljava/util/function/Function;)Lcx$a;
    • method_74113

      static <T extends Number & Comparable<T>> com.mojang.serialization.Codec<NumberRange.class_11893<T>> method_74113(com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      named method_74113 Lnet/minecraft/predicate/NumberRange$class_11893;method_74113(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_74113 Lnet/minecraft/class_2096$class_11893;method_74113(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official a Lcx$a;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • method_74109

      static <B extends ByteBuf, T extends Number & Comparable<T>> PacketCodec<B,NumberRange.class_11893<T>> method_74109(PacketCodec<B,T> packetCodec)
      Mappings:
      Namespace Name Mixin selector
      named method_74109 Lnet/minecraft/predicate/NumberRange$class_11893;method_74109(Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;
      intermediary method_74109 Lnet/minecraft/class_2096$class_11893;method_74109(Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;
      official a Lcx$a;a(Laae;)Laae;
    • method_74111

      public static <T extends Number & Comparable<T>> NumberRange.class_11893<T> method_74111(com.mojang.brigadier.StringReader stringReader, Function<String,T> function, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> supplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named method_74111 Lnet/minecraft/predicate/NumberRange$class_11893;method_74111(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Lnet/minecraft/predicate/NumberRange$class_11893;
      intermediary method_74111 Lnet/minecraft/class_2096$class_11893;method_74111(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Lnet/minecraft/class_2096$class_11893;
      official a Lcx$a;a(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Lcx$a;
    • method_74121

      private static <T extends Number> Optional<T> method_74121(com.mojang.brigadier.StringReader stringReader, Function<String,T> function, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> supplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named method_74121 Lnet/minecraft/predicate/NumberRange$class_11893;method_74121(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/util/Optional;
      intermediary method_74121 Lnet/minecraft/class_2096$class_11893;method_74121(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/util/Optional;
      official b Lcx$a;b(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/util/Optional;
    • method_74110

      private static boolean method_74110(com.mojang.brigadier.StringReader stringReader)
      Mappings:
      Namespace Name Mixin selector
      named method_74110 Lnet/minecraft/predicate/NumberRange$class_11893;method_74110(Lcom/mojang/brigadier/StringReader;)Z
      intermediary method_74110 Lnet/minecraft/class_2096$class_11893;method_74110(Lcom/mojang/brigadier/StringReader;)Z
      official a Lcx$a;a(Lcom/mojang/brigadier/StringReader;)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.
    • min

      public Optional<T> min()
      Returns the value of the min record component.
      Returns:
      the value of the min record component
    • max

      public Optional<T> max()
      Returns the value of the max record component.
      Returns:
      the value of the max record component