Package net.minecraft.util.math.random
Class RandomSeed
java.lang.Object
net.minecraft.util.math.random.RandomSeed
- Mappings:
Namespace Name official dai
intermediary net/minecraft/class_6673
named net/minecraft/util/math/random/RandomSeed
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
private static final AtomicLong
static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RandomSeed.XoroshiroSeed
createXoroshiroSeed
(long seed) static long
getSeed()
Returns the seed calculated usingSEED_UNIQUIFIER
and the system time.static long
mixStafford13
(long seed)
-
Field Details
-
GOLDEN_RATIO_64
public static final long GOLDEN_RATIO_64- See Also:
-
-
invalid @see
jdk.internal.util.random.RandomSupport#GOLDEN_RATIO_64
- Constant Field Values
-
- Mappings:
Namespace Name Mixin selector official a
Ldai;a:J
intermediary field_35133
Lnet/minecraft/class_6673;field_35133:J
named GOLDEN_RATIO_64
Lnet/minecraft/util/math/random/RandomSeed;GOLDEN_RATIO_64:J
-
SILVER_RATIO_64
public static final long SILVER_RATIO_64- See Also:
-
-
invalid @see
jdk.internal.util.random.RandomSupport#SILVER_RATIO_64
- Constant Field Values
-
- Mappings:
Namespace Name Mixin selector official b
Ldai;b:J
intermediary field_35134
Lnet/minecraft/class_6673;field_35134:J
named SILVER_RATIO_64
Lnet/minecraft/util/math/random/RandomSeed;SILVER_RATIO_64:J
-
SEED_UNIQUIFIER
- Mappings:
Namespace Name Mixin selector official c
Ldai;c:Ljava/util/concurrent/atomic/AtomicLong;
intermediary field_35135
Lnet/minecraft/class_6673;field_35135:Ljava/util/concurrent/atomic/AtomicLong;
named SEED_UNIQUIFIER
Lnet/minecraft/util/math/random/RandomSeed;SEED_UNIQUIFIER:Ljava/util/concurrent/atomic/AtomicLong;
-
-
Constructor Details
-
RandomSeed
public RandomSeed()
-
-
Method Details
-
mixStafford13
public static long mixStafford13(long seed) - See Also:
-
-
invalid @see
jdk.internal.util.random.RandomSupport#mixStafford13(long)
-
- Mappings:
Namespace Name Mixin selector official a
Ldai;a(J)J
intermediary method_39002
Lnet/minecraft/class_6673;method_39002(J)J
named mixStafford13
Lnet/minecraft/util/math/random/RandomSeed;mixStafford13(J)J
-
createXoroshiroSeed
- See Also:
-
-
invalid @see
jdk.random.Xoroshiro128PlusPlus#Xoroshiro128PlusPlus(long)
-
- Mappings:
Namespace Name Mixin selector official b
Ldai;b(J)Ldai$a;
intermediary method_39003
Lnet/minecraft/class_6673;method_39003(J)Lnet/minecraft/class_6673$class_6674;
named createXoroshiroSeed
Lnet/minecraft/util/math/random/RandomSeed;createXoroshiroSeed(J)Lnet/minecraft/util/math/random/RandomSeed$XoroshiroSeed;
-
getSeed
public static long getSeed()Returns the seed calculated usingSEED_UNIQUIFIER
and the system time.- Returns:
- the seed calculated using
SEED_UNIQUIFIER
and the system time - Mappings:
Namespace Name Mixin selector official a
Ldai;a()J
intermediary method_39001
Lnet/minecraft/class_6673;method_39001()J
named getSeed
Lnet/minecraft/util/math/random/RandomSeed;getSeed()J
-