net.minecraft.predicate

public record NumberRange$IntRange

implements NumberRange<Integer>

net.minecraft.advancements.predicates.MinMaxBounds$Ints
net.minecraft.class_2096$class_2100
net.minecraft.predicate.NumberRange$IntRange

Field summary

Modifier and TypeField
private final NumberRange$Bounds<Integer>
bounds
comp_4771
bounds
private final NumberRange$Bounds<Long>
boundsSqr
comp_4773
boundsSqr
public static final NumberRange$IntRange
ANY
field_9708
ANY
public static final com.mojang.serialization.Codec<NumberRange$IntRange>
CODEC
field_45763
CODEC
public static final PacketCodec<io.netty.buffer.ByteBuf, NumberRange$IntRange>
STREAM_CODEC
field_56294
PACKET_CODEC

Constructor summary

ModifierConstructor
private (NumberRange$Bounds<Integer> bounds)
public (NumberRange$Bounds<Integer> bounds, NumberRange$Bounds<Long> boundsSqr)

Method summary

Modifier and TypeMethod
public static NumberRange$IntRange
exactly(int value)
method_9058(int arg0)
exactly(int value)
public static NumberRange$IntRange
between(int min, int max)
method_35287(int arg0, int arg1)
between(int min, int max)
public static NumberRange$IntRange
atLeast(int value)
method_9053(int arg0)
atLeast(int value)
public static NumberRange$IntRange
atMost(int value)
method_35289(int arg0)
atMost(int value)
public boolean
matches(int value)
method_9054(int arg0)
test(int value)
public boolean
matchesSqr(long valueSqr)
method_35288(long arg0)
testSqrt(long value)
public static NumberRange$IntRange
fromReader(com.mojang.brigadier.StringReader reader)
method_9060(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
public NumberRange$Bounds<Integer>
bounds()
comp_4771()
bounds()
public NumberRange$Bounds<Long>
boundsSqr()
comp_4773()
boundsSqr()
private static Long
lambda$new$0(Integer arg0)
method_53197(Integer arg0)
method_53197(Integer i)