Class ConstantFloatProvider

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

public class ConstantFloatProvider extends FloatProvider
Mappings:
Namespace Name
named net/minecraft/util/math/floatprovider/ConstantFloatProvider
intermediary net/minecraft/class_5862
official bpi
  • Field Details

    • ZERO

      public static final ConstantFloatProvider ZERO
      Mappings:
      Namespace Name Mixin selector
      named ZERO Lnet/minecraft/util/math/floatprovider/ConstantFloatProvider;ZERO:Lnet/minecraft/util/math/floatprovider/ConstantFloatProvider;
      intermediary field_29003 Lnet/minecraft/class_5862;field_29003:Lnet/minecraft/class_5862;
      official a Lbpi;a:Lbpi;
    • CODEC

      public static final com.mojang.serialization.MapCodec<ConstantFloatProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/math/floatprovider/ConstantFloatProvider;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_29004 Lnet/minecraft/class_5862;field_29004:Lcom/mojang/serialization/MapCodec;
      official b Lbpi;b:Lcom/mojang/serialization/MapCodec;
    • value

      private final float value
      Mappings:
      Namespace Name Mixin selector
      named value Lnet/minecraft/util/math/floatprovider/ConstantFloatProvider;value:F
      intermediary field_29005 Lnet/minecraft/class_5862;field_29005:F
      official d Lbpi;d:F
  • Constructor Details

    • ConstantFloatProvider

      private ConstantFloatProvider(float value)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/floatprovider/ConstantFloatProvider;<init>(F)V
      intermediary <init> Lnet/minecraft/class_5862;<init>(F)V
      official <init> Lbpi;<init>(F)V
  • Method Details

    • create

      public static ConstantFloatProvider create(float value)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/util/math/floatprovider/ConstantFloatProvider;create(F)Lnet/minecraft/util/math/floatprovider/ConstantFloatProvider;
      intermediary method_33908 Lnet/minecraft/class_5862;method_33908(F)Lnet/minecraft/class_5862;
      official a Lbpi;a(F)Lbpi;
    • getValue

      public float getValue()
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/util/math/floatprovider/ConstantFloatProvider;getValue()F
      intermediary method_33914 Lnet/minecraft/class_5862;method_33914()F
      official d Lbpi;d()F
    • 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