Class UniformFloatProvider

java.lang.Object
net.minecraft.util.math.floatprovider.FloatProvider
net.minecraft.util.math.floatprovider.UniformFloatProvider

public class UniformFloatProvider extends FloatProvider
Mappings:
Namespace Name
official avr
intermediary net/minecraft/class_5866
named net/minecraft/util/math/floatprovider/UniformFloatProvider
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<UniformFloatProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lavr;a:Lcom/mojang/serialization/Codec;
      intermediary field_29016 Lnet/minecraft/class_5866;field_29016:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/util/math/floatprovider/UniformFloatProvider;CODEC:Lcom/mojang/serialization/Codec;
    • min

      private final float min
      Mappings:
      Namespace Name Mixin selector
      official b Lavr;b:F
      intermediary field_29017 Lnet/minecraft/class_5866;field_29017:F
      named min Lnet/minecraft/util/math/floatprovider/UniformFloatProvider;min:F
    • max

      private final float max
      Mappings:
      Namespace Name Mixin selector
      official d Lavr;d:F
      intermediary field_29018 Lnet/minecraft/class_5866;field_29018:F
      named max Lnet/minecraft/util/math/floatprovider/UniformFloatProvider;max:F
  • Constructor Details

    • UniformFloatProvider

      private UniformFloatProvider(float min, float max)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lavr;<init>(FF)V
      intermediary <init> Lnet/minecraft/class_5866;<init>(FF)V
      named <init> Lnet/minecraft/util/math/floatprovider/UniformFloatProvider;<init>(FF)V
  • Method Details

    • create

      public static UniformFloatProvider create(float min, float max)
      Mappings:
      Namespace Name Mixin selector
      official b Lavr;b(FF)Lavr;
      intermediary method_33934 Lnet/minecraft/class_5866;method_33934(FF)Lnet/minecraft/class_5866;
      named create Lnet/minecraft/util/math/floatprovider/UniformFloatProvider;create(FF)Lnet/minecraft/util/math/floatprovider/UniformFloatProvider;
    • get

      public float get(Random random)
      Specified by:
      get in class FloatProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lavm;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 float getMin()
      Specified by:
      getMin in class FloatProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lavm;a()F
      intermediary method_33915 Lnet/minecraft/class_5863;method_33915()F
      named getMin Lnet/minecraft/util/math/floatprovider/FloatProvider;getMin()F
    • getMax

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

      public FloatProviderType<?> getType()
      Specified by:
      getType in class FloatProvider
      Mappings:
      Namespace Name Mixin selector
      official c Lavm;c()Lavn;
      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;
    • toString

      public String toString()
      Overrides:
      toString in class Object