Package net.minecraft.world.gen.random
Class Xoroshiro128PlusPlusRandom
java.lang.Object
net.minecraft.world.gen.random.Xoroshiro128PlusPlusRandom
- All Implemented Interfaces:
AbstractRandom
Xoroshiro128++ based pseudo random number generator.
- Implementation Note:
- The actual implementation can be found on
Xoroshiro128PlusPlusRandomImpl. - Mappings:
Namespace Name official cytintermediary net/minecraft/class_6677named net/minecraft/world/gen/random/Xoroshiro128PlusPlusRandom
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate static final floatprivate final GaussianGeneratorprivate Xoroshiro128PlusPlusRandomImplFields inherited from interface net.minecraft.util.math.random.AbstractRandom
field_38930 -
Constructor Summary
ConstructorsConstructorDescriptionXoroshiro128PlusPlusRandom(long seed) Xoroshiro128PlusPlusRandom(long seedLo, long seedHi) -
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.AbstractRandom
nextBetween, nextBetweenExclusive, nextPredictable
-
Field Details
-
FLOAT_MULTIPLIER
private static final float FLOAT_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official bLcyt;b:Fintermediary field_35148Lnet/minecraft/class_6677;field_35148:Fnamed FLOAT_MULTIPLIERLnet/minecraft/world/gen/random/Xoroshiro128PlusPlusRandom;FLOAT_MULTIPLIER:F
-
DOUBLE_MULTIPLIER
private static final double DOUBLE_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official cLcyt;c:Dintermediary field_35149Lnet/minecraft/class_6677;field_35149:Dnamed DOUBLE_MULTIPLIERLnet/minecraft/world/gen/random/Xoroshiro128PlusPlusRandom;DOUBLE_MULTIPLIER:D
-
implementation
- Mappings:
Namespace Name Mixin selector official dLcyt;d:Lcys;intermediary field_35150Lnet/minecraft/class_6677;field_35150:Lnet/minecraft/class_6676;named implementationLnet/minecraft/world/gen/random/Xoroshiro128PlusPlusRandom;implementation:Lnet/minecraft/util/math/random/Xoroshiro128PlusPlusRandomImpl;
-
gaussianGenerator
- Mappings:
Namespace Name Mixin selector official eLcyt;e:Lcxw;intermediary field_35151Lnet/minecraft/class_6677;field_35151:Lnet/minecraft/class_6672;named gaussianGeneratorLnet/minecraft/world/gen/random/Xoroshiro128PlusPlusRandom;gaussianGenerator:Lnet/minecraft/world/gen/random/GaussianGenerator;
-
-
Constructor Details
-
Xoroshiro128PlusPlusRandom
public Xoroshiro128PlusPlusRandom(long seed) - Mappings:
Namespace Name Mixin selector official <init>Lcyt;<init>(J)Vintermediary <init>Lnet/minecraft/class_6677;<init>(J)Vnamed <init>Lnet/minecraft/world/gen/random/Xoroshiro128PlusPlusRandom;<init>(J)V
-
Xoroshiro128PlusPlusRandom
public Xoroshiro128PlusPlusRandom(long seedLo, long seedHi) - Mappings:
Namespace Name Mixin selector official <init>Lcyt;<init>(JJ)Vintermediary <init>Lnet/minecraft/class_6677;<init>(JJ)Vnamed <init>Lnet/minecraft/world/gen/random/Xoroshiro128PlusPlusRandom;<init>(JJ)V
-
-
Method Details
-
derive
- Specified by:
derivein interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official dLakq;d()Lakq;intermediary method_38420Lnet/minecraft/class_5819;method_38420()Lnet/minecraft/class_5819;named deriveLnet/minecraft/util/math/random/AbstractRandom;derive()Lnet/minecraft/util/math/random/AbstractRandom;
-
createRandomDeriver
- Specified by:
createRandomDeriverin interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official eLakq;e()Lcyh;intermediary method_38421Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;named createRandomDeriverLnet/minecraft/util/math/random/AbstractRandom;createRandomDeriver()Lnet/minecraft/util/math/random/RandomDeriver;
-
setSeed
public void setSeed(long seed) - Specified by:
setSeedin interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official bLakq;b(J)Vintermediary method_43052Lnet/minecraft/class_5819;method_43052(J)Vnamed setSeedLnet/minecraft/util/math/random/AbstractRandom;setSeed(J)V
-
nextInt
public int nextInt()- Specified by:
nextIntin interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official fLakq;f()Iintermediary method_43054Lnet/minecraft/class_5819;method_43054()Inamed nextIntLnet/minecraft/util/math/random/AbstractRandom;nextInt()I
-
nextInt
public int nextInt(int bound) - Specified by:
nextIntin interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official aLakq;a(I)Iintermediary method_43048Lnet/minecraft/class_5819;method_43048(I)Inamed nextIntLnet/minecraft/util/math/random/AbstractRandom;nextInt(I)I
-
nextLong
public long nextLong()- Specified by:
nextLongin interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official gLakq;g()Jintermediary method_43055Lnet/minecraft/class_5819;method_43055()Jnamed nextLongLnet/minecraft/util/math/random/AbstractRandom;nextLong()J
-
nextBoolean
public boolean nextBoolean()- Specified by:
nextBooleanin interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official hLakq;h()Zintermediary method_43056Lnet/minecraft/class_5819;method_43056()Znamed nextBooleanLnet/minecraft/util/math/random/AbstractRandom;nextBoolean()Z
-
nextFloat
public float nextFloat()- Specified by:
nextFloatin interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official iLakq;i()Fintermediary method_43057Lnet/minecraft/class_5819;method_43057()Fnamed nextFloatLnet/minecraft/util/math/random/AbstractRandom;nextFloat()F
-
nextDouble
public double nextDouble()- Specified by:
nextDoublein interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official jLakq;j()Dintermediary method_43058Lnet/minecraft/class_5819;method_43058()Dnamed nextDoubleLnet/minecraft/util/math/random/AbstractRandom;nextDouble()D
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussianin interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official kLakq;k()Dintermediary method_43059Lnet/minecraft/class_5819;method_43059()Dnamed nextGaussianLnet/minecraft/util/math/random/AbstractRandom;nextGaussian()D
-
skip
public void skip(int count) - Specified by:
skipin interfaceAbstractRandom- Mappings:
Namespace Name Mixin selector official bLakq;b(I)Vintermediary method_33650Lnet/minecraft/class_5819;method_33650(I)Vnamed skipLnet/minecraft/util/math/random/AbstractRandom;skip(I)V
-
next
private long next(int bits) Returnsbitsupper bits of random value.- Returns:
bitsupper bits of random value- Implementation Note:
- In Xoroshiro128++, the lower bits have to be discarded in order to ensure proper randomness. For example, to obtain a double, the upper 53 bits, instead of the lower 53 bits.
- Mappings:
Namespace Name Mixin selector official cLcyt;c(I)Jintermediary method_39008Lnet/minecraft/class_6677;method_39008(I)Jnamed nextLnet/minecraft/world/gen/random/Xoroshiro128PlusPlusRandom;next(I)J
-