net.minecraft.util.dynamic

public record Range<T extends Comparable<T>>

net.minecraft.util.InclusiveRange
net.minecraft.class_6497
net.minecraft.util.dynamic.Range

Field summary

Modifier and TypeField
private final T
minInclusive
comp_1
minInclusive
private final T
maxInclusive
comp_2
maxInclusive
public static final com.mojang.serialization.Codec<Range<Integer>>
INT
field_34390
CODEC

Constructor summary

ModifierConstructor
public (T minInclusive, T maxInclusive)
public (T value)

Method summary

Modifier and TypeMethod
public static <T extends Comparable<T>> com.mojang.serialization.Codec<Range<T>>
codec(com.mojang.serialization.Codec<T> elementCodec)
method_37953(com.mojang.serialization.Codec<T> arg0)
createCodec(com.mojang.serialization.Codec<T> elementCodec)
public static <T extends Comparable<T>> com.mojang.serialization.Codec<Range<T>>
codec(com.mojang.serialization.Codec<T> elementCodec, T minAllowedInclusive, T maxAllowedInclusive)
method_37954(com.mojang.serialization.Codec<T> arg0, T arg1, T arg2)
createRangedCodec(com.mojang.serialization.Codec<T> codec, T minInclusive, T maxInclusive)
public static <T extends Comparable<T>> com.mojang.serialization.DataResult<Range<T>>
create(T minInclusive, T maxInclusive)
method_37956(T arg0, T arg1)
validate(T minInclusive, T maxInclusive)
public <S extends Comparable<S>> Range<S>
map(Function<? super T, ? extends S> mapper)
method_72374(Function<? super T, ? extends S> arg0)
map(Function<? super T, ? extends S> f)
public boolean
isValueInRange(T value)
method_37955(T arg0)
contains(T value)
public boolean
contains(InclusiveRange<T> subRange)
method_37952(class_6497<T> arg0)
contains(Range<T> other)
public T
minInclusive()
comp_1()
minInclusive()
public T
maxInclusive()
comp_2()
maxInclusive()
private static String
lambda$create$3()
method_49449()
method_49449()
private static com.mojang.serialization.DataResult
lambda$codec$2(Comparable arg0, Comparable arg1, InclusiveRange arg2)
method_37957(Comparable arg0, Comparable arg1, class_6497 arg2)
method_37957(Comparable arg0, Comparable arg1, Range range)
private static String
lambda$codec$1(Comparable arg0, InclusiveRange arg1)
method_49447(Comparable arg0, class_6497 arg1)
method_49447(Comparable arg0, Range arg1)
private static String
lambda$codec$0(Comparable arg0, InclusiveRange arg1)
method_49448(Comparable arg0, class_6497 arg1)
method_49448(Comparable arg0, Range arg1)