Class UniformFloatProvider

java.lang.Object
net.minecraft.util.math.floatprovider.FloatProvider
net.minecraft.util.math.floatprovider.UniformFloatProvider
All Implemented Interfaces:
FloatSupplier

public class UniformFloatProvider extends FloatProvider
Mappings:
Namespace Name
official bde
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 Lbde;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 Lbde;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 Lbde;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> Lbde;<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 Lbde;b(FF)Lbde;
      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)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdc;a(Lapd;)F
      intermediary method_33920 Lnet/minecraft/class_7373;method_33920(Lnet/minecraft/class_5819;)F
      named get Lnet/minecraft/util/math/floatprovider/FloatSupplier;get(Lnet/minecraft/util/math/random/Random;)F
    • getMin

      public float getMin()
      Specified by:
      getMin in class FloatProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lbcx;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 Lbcx;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 Lbcx;c()Lbcy;
      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