Class TrapezoidFloat
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
net.minecraft.util.valueproviders.TrapezoidFloat
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<TrapezoidFloat>
private float
private float
private float
-
Constructor Summary
ModifierConstructorDescriptionprivate
TrapezoidFloat(float p_146567_, float p_146568_, float p_146569_)
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
getType()
static TrapezoidFloat
of(float p_146572_, float p_146573_, float p_146574_)
float
toString()
Methods inherited from class net.minecraft.util.valueproviders.FloatProvider
codec
-
Field Details
-
CODEC
-
min
private final float min -
max
private final float max -
plateau
private final float plateau
-
-
Constructor Details
-
TrapezoidFloat
private TrapezoidFloat(float p_146567_, float p_146568_, float p_146569_)
-
-
Method Details
-
of
-
sample
- Specified by:
sample
in classFloatProvider
-
getMinValue
public float getMinValue()- Specified by:
getMinValue
in classFloatProvider
-
getMaxValue
public float getMaxValue()- Specified by:
getMaxValue
in classFloatProvider
-
getType
- Specified by:
getType
in classFloatProvider
-
toString
-