net.minecraft.util.dynamic

public record Range<T extends Comparable<T>>

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

Field summary

Modifier and TypeField
private final T
minInclusive
minInclusive
comp_1
minInclusive
private final T
maxInclusive
maxInclusive
comp_2
maxInclusive
public static final com.mojang.serialization.Codec<Range<Integer>>
INT
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)
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)
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)
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)
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)
isValueInRange(T value)
method_37955(T arg0)
contains(T value)
public boolean
contains(InclusiveRange<T> subRange)
contains(InclusiveRange<T> subRange)
method_37952(class_6497<T> arg0)
contains(Range<T> other)
public T
minInclusive()
minInclusive()
comp_1()
minInclusive()
public T
maxInclusive()
maxInclusive()
comp_2()
maxInclusive()