Class TrapezoidFloat
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
net.minecraft.util.valueproviders.TrapezoidFloat
- All Implemented Interfaces:
SampledFloat
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<TrapezoidFloat> private final float
private final float
private final 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
sample
(RandomSource p_216864_) 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
-
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
-