Class FloatProvider

java.lang.Object
net.minecraft.util.valueproviders.FloatProvider
All Implemented Interfaces:
SampledFloat
Direct Known Subclasses:
ClampedNormalFloat, ConstantFloat, TrapezoidFloat, UniformFloat

public abstract class FloatProvider extends Object implements SampledFloat
  • 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

      public static final com.mojang.serialization.Codec<FloatProvider> CODEC
  • Constructor Details

    • FloatProvider

      public FloatProvider()
  • Method Details

    • codec

      public static com.mojang.serialization.Codec<FloatProvider> codec(float p_146506_, float p_146507_)
    • getMinValue

      public abstract float getMinValue()
    • getMaxValue

      public abstract float getMaxValue()
    • getType

      public abstract FloatProviderType<?> getType()