Package net.minecraft.world.gen
Class UniformIntDistribution
java.lang.Object
net.minecraft.world.gen.UniformIntDistribution
public class UniformIntDistribution extends Object
- Mappings:
Namespace Name official ago
intermediary net/minecraft/class_5428
named net/minecraft/world/gen/UniformIntDistribution
-
Field Summary
Fields Modifier and Type Field Description private int
base
static com.mojang.serialization.Codec<UniformIntDistribution>
CODEC
private int
spread
-
Constructor Summary
Constructors Modifier Constructor Description private
UniformIntDistribution(int base, int spread)
-
Method Summary
Modifier and Type Method Description static com.mojang.serialization.Codec<UniformIntDistribution>
createValidatedCodec(int minBase, int maxBase, int maxSpread)
boolean
equals(Object object)
int
getValue(Random random)
int
hashCode()
int
maxValue()
int
minValue()
static UniformIntDistribution
of(int value)
Creates a distribution with a constant value.static UniformIntDistribution
of(int base, int spread)
String
toString()
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lago;a:Lcom/mojang/serialization/Codec;
intermediary field_25809
Lnet/minecraft/class_5428;field_25809:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/UniformIntDistribution;CODEC:Lcom/mojang/serialization/Codec;
-
base
private final int base- Mappings:
Namespace Name Mixin selector official b
Lago;b:I
intermediary field_25810
Lnet/minecraft/class_5428;field_25810:I
named base
Lnet/minecraft/world/gen/UniformIntDistribution;base:I
-
spread
private final int spread- Mappings:
Namespace Name Mixin selector official c
Lago;c:I
intermediary field_25811
Lnet/minecraft/class_5428;field_25811:I
named spread
Lnet/minecraft/world/gen/UniformIntDistribution;spread:I
-
-
Constructor Details
-
UniformIntDistribution
private UniformIntDistribution(int base, int spread)- Mappings:
Namespace Name Mixin selector official <init>
Lago;<init>(II)V
intermediary <init>
Lnet/minecraft/class_5428;<init>(II)V
named <init>
Lnet/minecraft/world/gen/UniformIntDistribution;<init>(II)V
-
-
Method Details
-
createValidatedCodec
public static com.mojang.serialization.Codec<UniformIntDistribution> createValidatedCodec(int minBase, int maxBase, int maxSpread)- Mappings:
Namespace Name Mixin selector official a
Lago;a(III)Lcom/mojang/serialization/Codec;
intermediary method_30316
Lnet/minecraft/class_5428;method_30316(III)Lcom/mojang/serialization/Codec;
named createValidatedCodec
Lnet/minecraft/world/gen/UniformIntDistribution;createValidatedCodec(III)Lcom/mojang/serialization/Codec;
-
of
Creates a distribution with a constant value.- Parameters:
value
- the constant value- Mappings:
Namespace Name Mixin selector official a
Lago;a(I)Lago;
intermediary method_30314
Lnet/minecraft/class_5428;method_30314(I)Lnet/minecraft/class_5428;
named of
Lnet/minecraft/world/gen/UniformIntDistribution;of(I)Lnet/minecraft/world/gen/UniformIntDistribution;
-
of
- Mappings:
Namespace Name Mixin selector official a
Lago;a(II)Lago;
intermediary method_30315
Lnet/minecraft/class_5428;method_30315(II)Lnet/minecraft/class_5428;
named of
Lnet/minecraft/world/gen/UniformIntDistribution;of(II)Lnet/minecraft/world/gen/UniformIntDistribution;
-
getValue
- Mappings:
Namespace Name Mixin selector official a
Lago;a(Ljava/util/Random;)I
intermediary method_30321
Lnet/minecraft/class_5428;method_30321(Ljava/util/Random;)I
named getValue
Lnet/minecraft/world/gen/UniformIntDistribution;getValue(Ljava/util/Random;)I
-
minValue
public int minValue()- Mappings:
Namespace Name Mixin selector official a
Lago;a()I
intermediary method_32870
Lnet/minecraft/class_5428;method_32870()I
named minValue
Lnet/minecraft/world/gen/UniformIntDistribution;minValue()I
-
maxValue
public int maxValue()- Mappings:
Namespace Name Mixin selector official c
Lago;c()I
intermediary method_32871
Lnet/minecraft/class_5428;method_32871()I
named maxValue
Lnet/minecraft/world/gen/UniformIntDistribution;maxValue()I
-
equals
-
hashCode
public int hashCode() -
toString
-