Class FloatProvider
java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
- All Implemented Interfaces:
SampledFloat
- Direct Known Subclasses:
ClampedNormalFloat
,ConstantFloat
,TrapezoidFloat
,UniformFloat
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<FloatProvider> private static final com.mojang.serialization.Codec
<com.mojang.datafixers.util.Either<Float, FloatProvider>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec
<FloatProvider> codec
(float pMinInclusive, float pMaxInclusive) Creates a codec for a FloatProvider that only accepts numbers in the given range.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
public static com.mojang.serialization.Codec<FloatProvider> codec(float pMinInclusive, float pMaxInclusive) Creates a codec for a FloatProvider that only accepts numbers in the given range. -
getMinValue
public abstract float getMinValue() -
getMaxValue
public abstract float getMaxValue() -
getType
-