Class FloatProvider

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

public abstract class FloatProvider extends Object
  • 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_)
    • sample

      public abstract float sample(Random p_146516_)
    • getMinValue

      public abstract float getMinValue()
    • getMaxValue

      public abstract float getMaxValue()
    • getType

      public abstract FloatProviderType<?> getType()