Class FloatProvider

java.lang.Object
net.minecraft.util.math.floatprovider.FloatProvider
Direct Known Subclasses:
ClampedNormalFloatProvider, ConstantFloatProvider, TrapezoidFloatProvider, UniformFloatProvider

public abstract class FloatProvider extends Object
Mappings:
Namespace Name
official arg
intermediary net/minecraft/class_5863
named net/minecraft/util/math/floatprovider/FloatProvider
  • Field Details

    • FLOAT_CODEC

      private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Float,FloatProvider>> FLOAT_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Larg;a:Lcom/mojang/serialization/Codec;
      intermediary field_29006 Lnet/minecraft/class_5863;field_29006:Lcom/mojang/serialization/Codec;
      named FLOAT_CODEC Lnet/minecraft/util/math/floatprovider/FloatProvider;FLOAT_CODEC:Lcom/mojang/serialization/Codec;
    • VALUE_CODEC

      public static final com.mojang.serialization.Codec<FloatProvider> VALUE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Larg;c:Lcom/mojang/serialization/Codec;
      intermediary field_29007 Lnet/minecraft/class_5863;field_29007:Lcom/mojang/serialization/Codec;
      named VALUE_CODEC Lnet/minecraft/util/math/floatprovider/FloatProvider;VALUE_CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • FloatProvider

      public FloatProvider()
  • Method Details

    • createValidatedCodec

      public static com.mojang.serialization.Codec<FloatProvider> createValidatedCodec(float min, float max)
      Mappings:
      Namespace Name Mixin selector
      official a Larg;a(FF)Lcom/mojang/serialization/Codec;
      intermediary method_33916 Lnet/minecraft/class_5863;method_33916(FF)Lcom/mojang/serialization/Codec;
      named createValidatedCodec Lnet/minecraft/util/math/floatprovider/FloatProvider;createValidatedCodec(FF)Lcom/mojang/serialization/Codec;
    • get

      public abstract float get(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Larg;a(Ljava/util/Random;)F
      intermediary method_33920 Lnet/minecraft/class_5863;method_33920(Ljava/util/Random;)F
      named get Lnet/minecraft/util/math/floatprovider/FloatProvider;get(Ljava/util/Random;)F
    • getMin

      public abstract float getMin()
      Mappings:
      Namespace Name Mixin selector
      official a Larg;a()F
      intermediary method_33915 Lnet/minecraft/class_5863;method_33915()F
      named getMin Lnet/minecraft/util/math/floatprovider/FloatProvider;getMin()F
    • getMax

      public abstract float getMax()
      Mappings:
      Namespace Name Mixin selector
      official b Larg;b()F
      intermediary method_33921 Lnet/minecraft/class_5863;method_33921()F
      named getMax Lnet/minecraft/util/math/floatprovider/FloatProvider;getMax()F
    • getType

      public abstract FloatProviderType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official c Larg;c()Larh;
      intermediary method_33923 Lnet/minecraft/class_5863;method_33923()Lnet/minecraft/class_5864;
      named getType Lnet/minecraft/util/math/floatprovider/FloatProvider;getType()Lnet/minecraft/util/math/floatprovider/FloatProviderType;