Package net.minecraft.predicate
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$AngleRangeintermediary net/minecraft/class_2096$class_11894official cx$cnamed boundsintermediary comp_4771official f
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.predicate.NumberRange
NumberRange.AngleRange, NumberRange.Bounds<T extends Number & Comparable<T>>, NumberRange.DoubleRange, NumberRange.IntRange -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NumberRange.AngleRangeprivate final NumberRange.Bounds<Float> The field for theboundsrecord component.static final com.mojang.serialization.Codec<NumberRange.AngleRange> static final PacketCodec<ByteBuf, NumberRange.AngleRange> Fields inherited from interface net.minecraft.predicate.NumberRange
EXCEPTION_EMPTY, EXCEPTION_SWAPPED -
Constructor Summary
ConstructorsConstructorDescriptionAngleRange(NumberRange.Bounds<Float> bounds) Creates an instance of aAngleRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static NumberRange.AngleRangeparse(com.mojang.brigadier.StringReader reader) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.predicate.NumberRange
getMax, getMin, isDummy
-
Field Details
-
bounds
The field for theboundsrecord component. -
ANY
- Mappings:
Namespace Name Mixin selector named ANYLnet/minecraft/predicate/NumberRange$AngleRange;ANY:Lnet/minecraft/predicate/NumberRange$AngleRange;intermediary field_62527Lnet/minecraft/class_2096$class_11894;field_62527:Lnet/minecraft/class_2096$class_11894;official cLcx$c;c:Lcx$c;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/NumberRange$AngleRange;CODEC:Lcom/mojang/serialization/Codec;intermediary field_62528Lnet/minecraft/class_2096$class_11894;field_62528:Lcom/mojang/serialization/Codec;official dLcx$c;d:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/predicate/NumberRange$AngleRange;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62529Lnet/minecraft/class_2096$class_11894;field_62529:Lnet/minecraft/class_9139;official eLcx$c;e:Laae;
-
-
Constructor Details
-
AngleRange
Creates an instance of aAngleRangerecord class.- Parameters:
bounds- the value for theboundsrecord 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 parseLnet/minecraft/predicate/NumberRange$AngleRange;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$AngleRange;intermediary method_74129Lnet/minecraft/class_2096$class_11894;method_74129(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2096$class_11894;official aLcx$c;a(Lcom/mojang/brigadier/StringReader;)Lcx$c;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
bounds
Returns the value of theboundsrecord component.- Specified by:
boundsin interfaceNumberRange<Float>- Returns:
- the value of the
boundsrecord component
-