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 intermediary net/minecraft/class_6575official dhxnamed net/minecraft/util/math/random/LocalRandom
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GaussianGeneratorprivate static final longprivate static final intprivate static final longprivate longprivate static final longFields inherited from interface net.minecraft.util.math.random.BaseRandom
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIERFields inherited from interface net.minecraft.util.math.random.Random
field_38930 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.math.random.BaseRandom
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLongMethods 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 intermediary field_34689Lnet/minecraft/class_6575;field_34689:Iofficial dLdhx;d:Inamed INT_BITSLnet/minecraft/util/math/random/LocalRandom;INT_BITS:I
-
SEED_MASK
private static final long SEED_MASK- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_34690Lnet/minecraft/class_6575;field_34690:Jofficial eLdhx;e:Jnamed SEED_MASKLnet/minecraft/util/math/random/LocalRandom;SEED_MASK:J
-
MULTIPLIER
private static final long MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_34691Lnet/minecraft/class_6575;field_34691:Jofficial fLdhx;f:Jnamed MULTIPLIERLnet/minecraft/util/math/random/LocalRandom;MULTIPLIER:J
-
INCREMENT
private static final long INCREMENT- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_34692Lnet/minecraft/class_6575;field_34692:Jofficial gLdhx;g:Jnamed INCREMENTLnet/minecraft/util/math/random/LocalRandom;INCREMENT:J
-
seed
private long seed- Mappings:
Namespace Name Mixin selector intermediary field_34693Lnet/minecraft/class_6575;field_34693:Jofficial hLdhx;h:Jnamed seedLnet/minecraft/util/math/random/LocalRandom;seed:J
-
gaussianGenerator
- Mappings:
Namespace Name Mixin selector intermediary field_35136Lnet/minecraft/class_6575;field_35136:Lnet/minecraft/class_6672;official iLdhx;i:Ldhj;named gaussianGeneratorLnet/minecraft/util/math/random/LocalRandom;gaussianGenerator:Lnet/minecraft/util/math/random/GaussianGenerator;
-
-
Constructor Details
-
LocalRandom
public LocalRandom(long seed) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_6575;<init>(J)Vofficial <init>Ldhx;<init>(J)Vnamed <init>Lnet/minecraft/util/math/random/LocalRandom;<init>(J)V
-
-
Method Details
-
split
-
nextSplitter
- Specified by:
nextSplitterin interfaceRandom- Mappings:
Namespace Name Mixin selector intermediary method_38421Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;official eLapf;e()Ldhu;named nextSplitterLnet/minecraft/util/math/random/Random;nextSplitter()Lnet/minecraft/util/math/random/RandomSplitter;
-
setSeed
public void setSeed(long seed) -
next
public int next(int bits) - Specified by:
nextin interfaceBaseRandom- Mappings:
Namespace Name Mixin selector intermediary method_43156Lnet/minecraft/class_6566;method_43156(I)Iofficial cLdgw;c(I)Inamed nextLnet/minecraft/util/math/random/BaseRandom;next(I)I
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussianin interfaceRandom- Mappings:
Namespace Name Mixin selector intermediary method_43059Lnet/minecraft/class_5819;method_43059()Dofficial kLapf;k()Dnamed nextGaussianLnet/minecraft/util/math/random/Random;nextGaussian()D
-