Class FloatProvider

java.lang.Object
net.minecraft.util.math.floatprovider.FloatProvider
All Implemented Interfaces:
FloatSupplier
Direct Known Subclasses:
ClampedNormalFloatProvider, ConstantFloatProvider, TrapezoidFloatProvider, UniformFloatProvider

public abstract class FloatProvider extends Object implements FloatSupplier
Mappings:
Namespace Name
official bda
intermediary net/minecraft/class_5863
named net/minecraft/util/math/floatprovider/FloatProvider
  • Field Details

    • FLOAT_CODEC

      private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Float,FloatProvider>> FLOAT_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a:Lcom/mojang/serialization/Codec;
      intermediary field_29006 Lnet/minecraft/class_5863;field_29006:Lcom/mojang/serialization/Codec;
      named FLOAT_CODEC Lnet/minecraft/util/math/floatprovider/FloatProvider;FLOAT_CODEC:Lcom/mojang/serialization/Codec;
    • VALUE_CODEC

      public static final com.mojang.serialization.Codec<FloatProvider> VALUE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Lbda;c:Lcom/mojang/serialization/Codec;
      intermediary field_29007 Lnet/minecraft/class_5863;field_29007:Lcom/mojang/serialization/Codec;
      named VALUE_CODEC Lnet/minecraft/util/math/floatprovider/FloatProvider;VALUE_CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • FloatProvider

      public FloatProvider()
  • Method Details

    • createValidatedCodec

      public static com.mojang.serialization.Codec<FloatProvider> createValidatedCodec(float min, float max)
      Mappings:
      Namespace Name Mixin selector
      official a Lbda;a(FF)Lcom/mojang/serialization/Codec;
      intermediary method_33916 Lnet/minecraft/class_5863;method_33916(FF)Lcom/mojang/serialization/Codec;
      named createValidatedCodec Lnet/minecraft/util/math/floatprovider/FloatProvider;createValidatedCodec(FF)Lcom/mojang/serialization/Codec;
    • getMin

      public abstract float getMin()
      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 abstract float getMax()
      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 abstract FloatProviderType<?> getType()
      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;