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
named net/minecraft/util/math/floatprovider/UniformFloatProvider
intermediary net/minecraft/class_5866
official bpr
  • Field Details

    • CODEC

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

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

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

    • UniformFloatProvider

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

    • create

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

      public float get(Random random)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/util/math/floatprovider/FloatSupplier;get(Lnet/minecraft/util/math/random/Random;)F
      intermediary method_33920 Lnet/minecraft/class_7373;method_33920(Lnet/minecraft/class_5819;)F
      official a Lbpp;a(Layo;)F
    • getMin

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

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

      public FloatProviderType<?> getType()
      Specified by:
      getType in class FloatProvider
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/util/math/floatprovider/FloatProvider;getType()Lnet/minecraft/util/math/floatprovider/FloatProviderType;
      intermediary method_33923 Lnet/minecraft/class_5863;method_33923()Lnet/minecraft/class_5864;
      official c Lbpk;c()Lbpl;
    • toString

      public String toString()
      Overrides:
      toString in class Object