Class FloatProvider
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
- Direct Known Subclasses:
ClampedNormalFloat
,ConstantFloat
,TrapezoidFloat
,UniformFloat
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FloatProvider>
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Float,
FloatProvider>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<FloatProvider>
codec
(float p_146506_, float p_146507_) abstract float
abstract float
abstract FloatProviderType<?>
getType()
abstract float
-
Field Details
-
CONSTANT_OR_DISPATCH_CODEC
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Float,FloatProvider>> CONSTANT_OR_DISPATCH_CODEC -
CODEC
-
-
Constructor Details
-
FloatProvider
public FloatProvider()
-
-
Method Details
-
codec
-
sample
-
getMinValue
public abstract float getMinValue() -
getMaxValue
public abstract float getMaxValue() -
getType
-