Package net.minecraft.predicate
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$IntRangeintermediary net/minecraft/class_2096$class_2100official cx$dnamed boundsintermediary comp_4771official fnamed boundsSqrintermediary comp_4773official g
-
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.IntRangeprivate final NumberRange.Bounds<Integer> The field for theboundsrecord component.private final NumberRange.Bounds<Long> The field for theboundsSqrrecord component.static final com.mojang.serialization.Codec<NumberRange.IntRange> static final PacketCodec<ByteBuf, NumberRange.IntRange> Fields inherited from interface net.minecraft.predicate.NumberRange
EXCEPTION_EMPTY, EXCEPTION_SWAPPED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIntRange(NumberRange.Bounds<Integer> bounds) IntRange(NumberRange.Bounds<Integer> bounds, NumberRange.Bounds<Long> bounds2) -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberRange.IntRangeatLeast(int value) static NumberRange.IntRangeatMost(int value) static NumberRange.IntRangebetween(int min, int max) bounds()Returns the value of theboundsrecord component.Returns the value of theboundsSqrrecord component.final booleanIndicates whether some other object is "equal to" this one.static NumberRange.IntRangeexactly(int value) final inthashCode()Returns a hash code value for this object.static NumberRange.IntRangeparse(com.mojang.brigadier.StringReader reader) booleantest(int value) booleantestSqrt(long value) 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. -
boundsSqr
The field for theboundsSqrrecord component. -
ANY
- Mappings:
Namespace Name Mixin selector named ANYLnet/minecraft/predicate/NumberRange$IntRange;ANY:Lnet/minecraft/predicate/NumberRange$IntRange;intermediary field_9708Lnet/minecraft/class_2096$class_2100;field_9708:Lnet/minecraft/class_2096$class_2100;official cLcx$d;c:Lcx$d;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/NumberRange$IntRange;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45763Lnet/minecraft/class_2096$class_2100;field_45763:Lcom/mojang/serialization/Codec;official dLcx$d;d:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/predicate/NumberRange$IntRange;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_56294Lnet/minecraft/class_2096$class_2100;field_56294:Lnet/minecraft/class_9139;official eLcx$d;e:Laae;
-
-
Constructor Details
-
IntRange
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/predicate/NumberRange$IntRange;<init>(Lnet/minecraft/predicate/NumberRange$Bounds;)Vintermediary <init>Lnet/minecraft/class_2096$class_2100;<init>(Lnet/minecraft/class_2096$class_11893;)Vofficial <init>Lcx$d;<init>(Lcx$a;)V
-
IntRange
-
-
Method Details
-
exactly
- Mappings:
Namespace Name Mixin selector named exactlyLnet/minecraft/predicate/NumberRange$IntRange;exactly(I)Lnet/minecraft/predicate/NumberRange$IntRange;intermediary method_9058Lnet/minecraft/class_2096$class_2100;method_9058(I)Lnet/minecraft/class_2096$class_2100;official aLcx$d;a(I)Lcx$d;
-
between
- Mappings:
Namespace Name Mixin selector named betweenLnet/minecraft/predicate/NumberRange$IntRange;between(II)Lnet/minecraft/predicate/NumberRange$IntRange;intermediary method_35287Lnet/minecraft/class_2096$class_2100;method_35287(II)Lnet/minecraft/class_2096$class_2100;official aLcx$d;a(II)Lcx$d;
-
atLeast
- Mappings:
Namespace Name Mixin selector named atLeastLnet/minecraft/predicate/NumberRange$IntRange;atLeast(I)Lnet/minecraft/predicate/NumberRange$IntRange;intermediary method_9053Lnet/minecraft/class_2096$class_2100;method_9053(I)Lnet/minecraft/class_2096$class_2100;official bLcx$d;b(I)Lcx$d;
-
atMost
- Mappings:
Namespace Name Mixin selector named atMostLnet/minecraft/predicate/NumberRange$IntRange;atMost(I)Lnet/minecraft/predicate/NumberRange$IntRange;intermediary method_35289Lnet/minecraft/class_2096$class_2100;method_35289(I)Lnet/minecraft/class_2096$class_2100;official cLcx$d;c(I)Lcx$d;
-
test
public boolean test(int value) - Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/NumberRange$IntRange;test(I)Zintermediary method_9054Lnet/minecraft/class_2096$class_2100;method_9054(I)Zofficial dLcx$d;d(I)Z
-
testSqrt
public boolean testSqrt(long value) - Mappings:
Namespace Name Mixin selector named testSqrtLnet/minecraft/predicate/NumberRange$IntRange;testSqrt(J)Zintermediary method_35288Lnet/minecraft/class_2096$class_2100;method_35288(J)Zofficial aLcx$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 parseLnet/minecraft/predicate/NumberRange$IntRange;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$IntRange;intermediary method_9060Lnet/minecraft/class_2096$class_2100;method_9060(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2096$class_2100;official aLcx$d;a(Lcom/mojang/brigadier/StringReader;)Lcx$d;
-
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<Integer>- Returns:
- the value of the
boundsrecord component
-
boundsSqr
Returns the value of theboundsSqrrecord component.- Returns:
- the value of the
boundsSqrrecord component
-