Record Class NumberRange.AngleRange

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

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

    • bounds

      private final NumberRange.Bounds<Float> bounds
      The field for the bounds record component.
    • ANY

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

      public static final com.mojang.serialization.Codec<NumberRange.AngleRange> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/predicate/NumberRange$AngleRange;CODEC: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;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,NumberRange.AngleRange> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/predicate/NumberRange$AngleRange;PACKET_CODEC: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

    • AngleRange

      public AngleRange(NumberRange.Bounds<Float> bounds)
      Creates an instance of a AngleRange record class.
      Parameters:
      bounds - the value for the bounds record component
  • Method Details

    • parse

      public static NumberRange.AngleRange 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$AngleRange;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$AngleRange;
      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.Bounds<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