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
named net/minecraft/util/math/floatprovider/FloatProvider
intermediary net/minecraft/class_5863
official bsl
  • 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
      named FLOAT_CODEC Lnet/minecraft/util/math/floatprovider/FloatProvider;FLOAT_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_29006 Lnet/minecraft/class_5863;field_29006:Lcom/mojang/serialization/Codec;
      official a Lbsl;a:Lcom/mojang/serialization/Codec;
    • VALUE_CODEC

      public static final com.mojang.serialization.Codec<FloatProvider> VALUE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named VALUE_CODEC Lnet/minecraft/util/math/floatprovider/FloatProvider;VALUE_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_29007 Lnet/minecraft/class_5863;field_29007:Lcom/mojang/serialization/Codec;
      official c Lbsl;c: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
      named createValidatedCodec Lnet/minecraft/util/math/floatprovider/FloatProvider;createValidatedCodec(FF)Lcom/mojang/serialization/Codec;
      intermediary method_33916 Lnet/minecraft/class_5863;method_33916(FF)Lcom/mojang/serialization/Codec;
      official a Lbsl;a(FF)Lcom/mojang/serialization/Codec;
    • getMin

      public abstract float getMin()
      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 Lbsl;a()F
    • getMax

      public abstract float getMax()
      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 Lbsl;b()F
    • getType

      public abstract FloatProviderType<?> getType()
      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 Lbsl;c()Lbsm;