Package net.minecraft.util
Interface CubicSpline<C>
- All Superinterfaces:
ToFloatFunction<C>
- All Known Implementing Classes:
CubicSpline.Constant
,CubicSpline.Multipoint
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final record
static interface
static final record
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C> CubicSpline.Builder<C>
builder
(ToFloatFunction<C> p_184253_) static <C> CubicSpline.Builder<C>
builder
(ToFloatFunction<C> p_184255_, ToFloatFunction<Float> p_184256_) static <C> com.mojang.serialization.Codec<CubicSpline<C>>
codec
(com.mojang.serialization.Codec<ToFloatFunction<C>> p_184263_) static <C> CubicSpline<C>
constant
(float p_184240_) mapAll
(CubicSpline.CoordinateVisitor<C> p_211579_) float
max()
float
min()
Methods inherited from interface net.minecraft.util.ToFloatFunction
apply
-
Method Details
-
parityString
String parityString() -
min
float min() -
max
float max() -
mapAll
-
codec
static <C> com.mojang.serialization.Codec<CubicSpline<C>> codec(com.mojang.serialization.Codec<ToFloatFunction<C>> p_184263_) -
constant
-
builder
-
builder
static <C> CubicSpline.Builder<C> builder(ToFloatFunction<C> p_184255_, ToFloatFunction<Float> p_184256_)
-