Class FloatProvider
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
- All Implemented Interfaces:
SampledFloat
- 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()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.valueproviders.SampledFloat
sample
-
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
-
getMinValue
public abstract float getMinValue() -
getMaxValue
public abstract float getMaxValue() -
getType
-