Record Class NumberRange.class_11894

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

public static record NumberRange.class_11894(NumberRange.class_11893<Float> bounds) extends Record implements NumberRange<Float>
Mappings:
Namespace Name
named net/minecraft/predicate/NumberRange$class_11894
intermediary net/minecraft/class_2096$class_11894
official cx$c
named bounds
intermediary comp_4771
official f
  • Field Details

    • bounds

      private final NumberRange.class_11893<Float> bounds
      The field for the bounds record component.
    • field_62527

      public static final NumberRange.class_11894 field_62527
      Mappings:
      Namespace Name Mixin selector
      named field_62527 Lnet/minecraft/predicate/NumberRange$class_11894;field_62527:Lnet/minecraft/predicate/NumberRange$class_11894;
      intermediary field_62527 Lnet/minecraft/class_2096$class_11894;field_62527:Lnet/minecraft/class_2096$class_11894;
      official c Lcx$c;c:Lcx$c;
    • field_62528

      public static final com.mojang.serialization.Codec<NumberRange.class_11894> field_62528
      Mappings:
      Namespace Name Mixin selector
      named field_62528 Lnet/minecraft/predicate/NumberRange$class_11894;field_62528:Lcom/mojang/serialization/Codec;
      intermediary field_62528 Lnet/minecraft/class_2096$class_11894;field_62528:Lcom/mojang/serialization/Codec;
      official d Lcx$c;d:Lcom/mojang/serialization/Codec;
    • field_62529

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

  • Method Details

    • method_74129

      public static NumberRange.class_11894 method_74129(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named method_74129 Lnet/minecraft/predicate/NumberRange$class_11894;method_74129(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$class_11894;
      intermediary method_74129 Lnet/minecraft/class_2096$class_11894;method_74129(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2096$class_11894;
      official a Lcx$c;a(Lcom/mojang/brigadier/StringReader;)Lcx$c;
    • 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.class_11893<Float> bounds()
      Returns the value of the bounds record component.
      Specified by:
      bounds in interface NumberRange<Float>
      Returns:
      the value of the bounds record component