Class TrapezoidFloatProvider

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

public class TrapezoidFloatProvider extends FloatProvider
Mappings:
Namespace Name
official ayv
intermediary net/minecraft/class_5865
named net/minecraft/util/math/floatprovider/TrapezoidFloatProvider
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<TrapezoidFloatProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Layv;a:Lcom/mojang/serialization/Codec;
      intermediary field_29012 Lnet/minecraft/class_5865;field_29012:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/util/math/floatprovider/TrapezoidFloatProvider;CODEC:Lcom/mojang/serialization/Codec;
    • min

      private final float min
      Mappings:
      Namespace Name Mixin selector
      official b Layv;b:F
      intermediary field_29013 Lnet/minecraft/class_5865;field_29013:F
      named min Lnet/minecraft/util/math/floatprovider/TrapezoidFloatProvider;min:F
    • max

      private final float max
      Mappings:
      Namespace Name Mixin selector
      official d Layv;d:F
      intermediary field_29014 Lnet/minecraft/class_5865;field_29014:F
      named max Lnet/minecraft/util/math/floatprovider/TrapezoidFloatProvider;max:F
    • plateau

      private final float plateau
      Mappings:
      Namespace Name Mixin selector
      official e Layv;e:F
      intermediary field_29015 Lnet/minecraft/class_5865;field_29015:F
      named plateau Lnet/minecraft/util/math/floatprovider/TrapezoidFloatProvider;plateau:F
  • Constructor Details

    • TrapezoidFloatProvider

      private TrapezoidFloatProvider(float min, float max, float plateau)
      Mappings:
      Namespace Name Mixin selector
      official <init> Layv;<init>(FFF)V
      intermediary <init> Lnet/minecraft/class_5865;<init>(FFF)V
      named <init> Lnet/minecraft/util/math/floatprovider/TrapezoidFloatProvider;<init>(FFF)V
  • Method Details

    • create

      public static TrapezoidFloatProvider create(float min, float max, float plateau)
      Mappings:
      Namespace Name Mixin selector
      official a Layv;a(FFF)Layv;
      intermediary method_33926 Lnet/minecraft/class_5865;method_33926(FFF)Lnet/minecraft/class_5865;
      named create Lnet/minecraft/util/math/floatprovider/TrapezoidFloatProvider;create(FFF)Lnet/minecraft/util/math/floatprovider/TrapezoidFloatProvider;
    • get

      public float get(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Layu;a(Lalu;)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 Layp;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 Layp;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 Layp;c()Layq;
      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