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
official bcy
intermediary net/minecraft/class_5862
named net/minecraft/util/math/floatprovider/ConstantFloatProvider
  • Field Details

    • ZERO

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

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

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

    • ConstantFloatProvider

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

    • create

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

      public float getValue()
      Mappings:
      Namespace Name Mixin selector
      official d Lbcy;d()F
      intermediary method_33914 Lnet/minecraft/class_5862;method_33914()F
      named getValue Lnet/minecraft/util/math/floatprovider/ConstantFloatProvider;getValue()F
    • get

      public float get(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdf;a(Lapf;)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 Lbda;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 Lbda;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 Lbda;c()Lbdb;
      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