Class UniformFloatDistribution

java.lang.Object
net.minecraft.world.gen.UniformFloatDistribution

public class UniformFloatDistribution
extends Object
Mappings:
Namespace Name
official agn
intermediary net/minecraft/class_5700
named net/minecraft/world/gen/UniformFloatDistribution
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<UniformFloatDistribution> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a:Lcom/mojang/serialization/Codec;
      intermediary field_28096 Lnet/minecraft/class_5700;field_28096:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/UniformFloatDistribution;CODEC:Lcom/mojang/serialization/Codec;
    • base

      private final float base
      Mappings:
      Namespace Name Mixin selector
      official b Lagn;b:F
      intermediary field_28097 Lnet/minecraft/class_5700;field_28097:F
      named base Lnet/minecraft/world/gen/UniformFloatDistribution;base:F
    • spread

      private final float spread
      Mappings:
      Namespace Name Mixin selector
      official c Lagn;c:F
      intermediary field_28098 Lnet/minecraft/class_5700;field_28098:F
      named spread Lnet/minecraft/world/gen/UniformFloatDistribution;spread:F
  • Constructor Details

    • UniformFloatDistribution

      private UniformFloatDistribution​(float base, float spread)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lagn;<init>(FF)V
      intermediary <init> Lnet/minecraft/class_5700;<init>(FF)V
      named <init> Lnet/minecraft/world/gen/UniformFloatDistribution;<init>(FF)V
  • Method Details

    • createValidatedCodec

      public static com.mojang.serialization.Codec<UniformFloatDistribution> createValidatedCodec​(float minBase, float maxBase, float maxSpread)
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a(FFF)Lcom/mojang/serialization/Codec;
      intermediary method_32859 Lnet/minecraft/class_5700;method_32859(FFF)Lcom/mojang/serialization/Codec;
      named createValidatedCodec Lnet/minecraft/world/gen/UniformFloatDistribution;createValidatedCodec(FFF)Lcom/mojang/serialization/Codec;
    • of

      public static UniformFloatDistribution of​(float value)
      Creates a distribution with a constant value.
      Parameters:
      value - the constant value
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a(F)Lagn;
      intermediary method_32857 Lnet/minecraft/class_5700;method_32857(F)Lnet/minecraft/class_5700;
      named of Lnet/minecraft/world/gen/UniformFloatDistribution;of(F)Lnet/minecraft/world/gen/UniformFloatDistribution;
    • of

      public static UniformFloatDistribution of​(float base, float spread)
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a(FF)Lagn;
      intermediary method_32858 Lnet/minecraft/class_5700;method_32858(FF)Lnet/minecraft/class_5700;
      named of Lnet/minecraft/world/gen/UniformFloatDistribution;of(FF)Lnet/minecraft/world/gen/UniformFloatDistribution;
    • getValue

      public float getValue​(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a(Ljava/util/Random;)F
      intermediary method_32864 Lnet/minecraft/class_5700;method_32864(Ljava/util/Random;)F
      named getValue Lnet/minecraft/world/gen/UniformFloatDistribution;getValue(Ljava/util/Random;)F
    • minValue

      public float minValue()
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a()F
      intermediary method_32856 Lnet/minecraft/class_5700;method_32856()F
      named minValue Lnet/minecraft/world/gen/UniformFloatDistribution;minValue()F
    • maxValue

      public float maxValue()
      Mappings:
      Namespace Name Mixin selector
      official c Lagn;c()F
      intermediary method_32866 Lnet/minecraft/class_5700;method_32866()F
      named maxValue Lnet/minecraft/world/gen/UniformFloatDistribution;maxValue()F
    • equals

      public boolean equals​(Object object)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lagn;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_5700;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/world/gen/UniformFloatDistribution;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lagn;hashCode()I
      intermediary hashCode Lnet/minecraft/class_5700;hashCode()I
      named hashCode Lnet/minecraft/world/gen/UniformFloatDistribution;hashCode()I
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lagn;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_5700;toString()Ljava/lang/String;
      named toString Lnet/minecraft/world/gen/UniformFloatDistribution;toString()Ljava/lang/String;