Package net.minecraft.world.gen
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 Summary
Fields Modifier and Type Field Description private float
base
static com.mojang.serialization.Codec<UniformFloatDistribution>
CODEC
private float
spread
-
Constructor Summary
Constructors Modifier Constructor Description private
UniformFloatDistribution(float base, float spread)
-
Method Summary
Modifier and Type Method Description static com.mojang.serialization.Codec<UniformFloatDistribution>
createValidatedCodec(float minBase, float maxBase, float maxSpread)
boolean
equals(Object object)
float
getValue(Random random)
int
hashCode()
float
maxValue()
float
minValue()
static UniformFloatDistribution
of(float value)
Creates a distribution with a constant value.static UniformFloatDistribution
of(float base, float spread)
String
toString()
-
Field Details
-
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
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
- 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
- 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
-
hashCode
public int hashCode() -
toString
-