Package net.minecraft.util.math.random
Class LocalRandom
java.lang.Object
net.minecraft.util.math.random.LocalRandom
- All Implemented Interfaces:
BaseRandom
,Random
A local random, not intended to be shared across threads.
- Mappings:
Namespace Name named net/minecraft/util/math/random/LocalRandom
intermediary net/minecraft/class_6575
official dyw
-
Field Summary
Modifier and TypeFieldDescriptionprivate final GaussianGenerator
private static final long
private static final int
private static final long
private long
private static final long
Fields inherited from interface net.minecraft.util.math.random.BaseRandom
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIER
Fields inherited from interface net.minecraft.util.math.random.Random
field_38930
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.math.random.BaseRandom
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLong
Methods inherited from interface net.minecraft.util.math.random.Random
nextBetween, nextBetweenExclusive, nextTriangular, skip
-
Field Details
-
INT_BITS
private static final int INT_BITS- See Also:
- Mappings:
Namespace Name Mixin selector named INT_BITS
Lnet/minecraft/util/math/random/LocalRandom;INT_BITS:I
intermediary field_34689
Lnet/minecraft/class_6575;field_34689:I
official d
Ldyw;d:I
-
SEED_MASK
private static final long SEED_MASK- See Also:
- Mappings:
Namespace Name Mixin selector named SEED_MASK
Lnet/minecraft/util/math/random/LocalRandom;SEED_MASK:J
intermediary field_34690
Lnet/minecraft/class_6575;field_34690:J
official e
Ldyw;e:J
-
MULTIPLIER
private static final long MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector named MULTIPLIER
Lnet/minecraft/util/math/random/LocalRandom;MULTIPLIER:J
intermediary field_34691
Lnet/minecraft/class_6575;field_34691:J
official f
Ldyw;f:J
-
INCREMENT
private static final long INCREMENT- See Also:
- Mappings:
Namespace Name Mixin selector named INCREMENT
Lnet/minecraft/util/math/random/LocalRandom;INCREMENT:J
intermediary field_34692
Lnet/minecraft/class_6575;field_34692:J
official g
Ldyw;g:J
-
seed
private long seed- Mappings:
Namespace Name Mixin selector named seed
Lnet/minecraft/util/math/random/LocalRandom;seed:J
intermediary field_34693
Lnet/minecraft/class_6575;field_34693:J
official h
Ldyw;h:J
-
gaussianGenerator
- Mappings:
Namespace Name Mixin selector named gaussianGenerator
Lnet/minecraft/util/math/random/LocalRandom;gaussianGenerator:Lnet/minecraft/util/math/random/GaussianGenerator;
intermediary field_35136
Lnet/minecraft/class_6575;field_35136:Lnet/minecraft/class_6672;
official i
Ldyw;i:Ldyi;
-
-
Constructor Details
-
LocalRandom
public LocalRandom(long seed) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/math/random/LocalRandom;<init>(J)V
intermediary <init>
Lnet/minecraft/class_6575;<init>(J)V
official <init>
Ldyw;<init>(J)V
-
-
Method Details
-
split
-
nextSplitter
- Specified by:
nextSplitter
in interfaceRandom
- Mappings:
Namespace Name Mixin selector named nextSplitter
Lnet/minecraft/util/math/random/Random;nextSplitter()Lnet/minecraft/util/math/random/RandomSplitter;
intermediary method_38421
Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;
official e
Layo;e()Ldyt;
-
setSeed
public void setSeed(long seed) -
next
public int next(int bits) - Specified by:
next
in interfaceBaseRandom
- Mappings:
Namespace Name Mixin selector named next
Lnet/minecraft/util/math/random/BaseRandom;next(I)I
intermediary method_43156
Lnet/minecraft/class_6566;method_43156(I)I
official c
Ldxv;c(I)I
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussian
in interfaceRandom
- Mappings:
Namespace Name Mixin selector named nextGaussian
Lnet/minecraft/util/math/random/Random;nextGaussian()D
intermediary method_43059
Lnet/minecraft/class_5819;method_43059()D
official k
Layo;k()D
-