Record Class NumberRange.IntRange

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

public static record NumberRange.IntRange(NumberRange.Bounds<Integer> bounds, NumberRange.Bounds<Long> boundsSqr) extends Record implements NumberRange<Integer>
Mappings:
Namespace Name
named net/minecraft/predicate/NumberRange$IntRange
intermediary net/minecraft/class_2096$class_2100
official cx$d
named bounds
intermediary comp_4771
official f
named boundsSqr
intermediary comp_4773
official g
  • Field Details

    • bounds

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

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

      public static final NumberRange.IntRange ANY
      Mappings:
      Namespace Name Mixin selector
      named ANY Lnet/minecraft/predicate/NumberRange$IntRange;ANY:Lnet/minecraft/predicate/NumberRange$IntRange;
      intermediary field_9708 Lnet/minecraft/class_2096$class_2100;field_9708:Lnet/minecraft/class_2096$class_2100;
      official c Lcx$d;c:Lcx$d;
    • CODEC

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

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

    • IntRange

      private IntRange(NumberRange.Bounds<Integer> bounds)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/predicate/NumberRange$IntRange;<init>(Lnet/minecraft/predicate/NumberRange$Bounds;)V
      intermediary <init> Lnet/minecraft/class_2096$class_2100;<init>(Lnet/minecraft/class_2096$class_11893;)V
      official <init> Lcx$d;<init>(Lcx$a;)V
    • IntRange

      public IntRange(NumberRange.Bounds<Integer> bounds, NumberRange.Bounds<Long> bounds2)
  • Method Details

    • exactly

      public static NumberRange.IntRange exactly(int value)
      Mappings:
      Namespace Name Mixin selector
      named exactly Lnet/minecraft/predicate/NumberRange$IntRange;exactly(I)Lnet/minecraft/predicate/NumberRange$IntRange;
      intermediary method_9058 Lnet/minecraft/class_2096$class_2100;method_9058(I)Lnet/minecraft/class_2096$class_2100;
      official a Lcx$d;a(I)Lcx$d;
    • between

      public static NumberRange.IntRange between(int min, int max)
      Mappings:
      Namespace Name Mixin selector
      named between Lnet/minecraft/predicate/NumberRange$IntRange;between(II)Lnet/minecraft/predicate/NumberRange$IntRange;
      intermediary method_35287 Lnet/minecraft/class_2096$class_2100;method_35287(II)Lnet/minecraft/class_2096$class_2100;
      official a Lcx$d;a(II)Lcx$d;
    • atLeast

      public static NumberRange.IntRange atLeast(int value)
      Mappings:
      Namespace Name Mixin selector
      named atLeast Lnet/minecraft/predicate/NumberRange$IntRange;atLeast(I)Lnet/minecraft/predicate/NumberRange$IntRange;
      intermediary method_9053 Lnet/minecraft/class_2096$class_2100;method_9053(I)Lnet/minecraft/class_2096$class_2100;
      official b Lcx$d;b(I)Lcx$d;
    • atMost

      public static NumberRange.IntRange atMost(int value)
      Mappings:
      Namespace Name Mixin selector
      named atMost Lnet/minecraft/predicate/NumberRange$IntRange;atMost(I)Lnet/minecraft/predicate/NumberRange$IntRange;
      intermediary method_35289 Lnet/minecraft/class_2096$class_2100;method_35289(I)Lnet/minecraft/class_2096$class_2100;
      official c Lcx$d;c(I)Lcx$d;
    • test

      public boolean test(int value)
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/NumberRange$IntRange;test(I)Z
      intermediary method_9054 Lnet/minecraft/class_2096$class_2100;method_9054(I)Z
      official d Lcx$d;d(I)Z
    • testSqrt

      public boolean testSqrt(long value)
      Mappings:
      Namespace Name Mixin selector
      named testSqrt Lnet/minecraft/predicate/NumberRange$IntRange;testSqrt(J)Z
      intermediary method_35288 Lnet/minecraft/class_2096$class_2100;method_35288(J)Z
      official a Lcx$d;a(J)Z
    • parse

      public static NumberRange.IntRange 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$IntRange;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$IntRange;
      intermediary method_9060 Lnet/minecraft/class_2096$class_2100;method_9060(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2096$class_2100;
      official a Lcx$d;a(Lcom/mojang/brigadier/StringReader;)Lcx$d;
    • 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<Integer> bounds()
      Returns the value of the bounds record component.
      Specified by:
      bounds in interface NumberRange<Integer>
      Returns:
      the value of the bounds record component
    • boundsSqr

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