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/LocalRandomintermediary net/minecraft/class_6575official dzo
-
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 named INT_BITSLnet/minecraft/util/math/random/LocalRandom;INT_BITS:Iintermediary field_34689Lnet/minecraft/class_6575;field_34689:Iofficial dLdzo;d:I
-
SEED_MASK
private static final long SEED_MASK- See Also:
- Mappings:
Namespace Name Mixin selector named SEED_MASKLnet/minecraft/util/math/random/LocalRandom;SEED_MASK:Jintermediary field_34690Lnet/minecraft/class_6575;field_34690:Jofficial eLdzo;e:J
-
MULTIPLIER
private static final long MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector named MULTIPLIERLnet/minecraft/util/math/random/LocalRandom;MULTIPLIER:Jintermediary field_34691Lnet/minecraft/class_6575;field_34691:Jofficial fLdzo;f:J
-
INCREMENT
private static final long INCREMENT- See Also:
- Mappings:
Namespace Name Mixin selector named INCREMENTLnet/minecraft/util/math/random/LocalRandom;INCREMENT:Jintermediary field_34692Lnet/minecraft/class_6575;field_34692:Jofficial gLdzo;g:J
-
seed
private long seed- Mappings:
Namespace Name Mixin selector named seedLnet/minecraft/util/math/random/LocalRandom;seed:Jintermediary field_34693Lnet/minecraft/class_6575;field_34693:Jofficial hLdzo;h:J
-
gaussianGenerator
- Mappings:
Namespace Name Mixin selector named gaussianGeneratorLnet/minecraft/util/math/random/LocalRandom;gaussianGenerator:Lnet/minecraft/util/math/random/GaussianGenerator;intermediary field_35136Lnet/minecraft/class_6575;field_35136:Lnet/minecraft/class_6672;official iLdzo;i:Ldza;
-
-
Constructor Details
-
LocalRandom
public LocalRandom(long seed) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/math/random/LocalRandom;<init>(J)Vintermediary <init>Lnet/minecraft/class_6575;<init>(J)Vofficial <init>Ldzo;<init>(J)V
-
-
Method Details
-
split
-
nextSplitter
- Specified by:
nextSplitterin interfaceRandom- Mappings:
Namespace Name Mixin selector named nextSplitterLnet/minecraft/util/math/random/Random;nextSplitter()Lnet/minecraft/util/math/random/RandomSplitter;intermediary method_38421Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;official eLayw;e()Ldzl;
-
setSeed
public void setSeed(long seed) -
next
public int next(int bits) - Specified by:
nextin interfaceBaseRandom- Mappings:
Namespace Name Mixin selector named nextLnet/minecraft/util/math/random/BaseRandom;next(I)Iintermediary method_43156Lnet/minecraft/class_6566;method_43156(I)Iofficial cLdyn;c(I)I
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussianin interfaceRandom- Mappings:
Namespace Name Mixin selector named nextGaussianLnet/minecraft/util/math/random/Random;nextGaussian()Dintermediary method_43059Lnet/minecraft/class_5819;method_43059()Dofficial kLayw;k()D
-