Package net.minecraft.util.math.random
Class RandomSeed
java.lang.Object
net.minecraft.util.math.random.RandomSeed
- Mappings:
Namespace Name official dhwintermediary net/minecraft/class_6673named net/minecraft/util/math/random/RandomSeed
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longprivate static final AtomicLongstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RandomSeed.XoroshiroSeedcreateXoroshiroSeed(long seed) static longgetSeed()Returns the seed calculated usingSEED_UNIQUIFIERand the system time.static longmixStafford13(long seed)
-
Field Details
-
GOLDEN_RATIO_64
public static final long GOLDEN_RATIO_64- See Also:
- Mappings:
Namespace Name Mixin selector official aLdhw;a:Jintermediary field_35133Lnet/minecraft/class_6673;field_35133:Jnamed GOLDEN_RATIO_64Lnet/minecraft/util/math/random/RandomSeed;GOLDEN_RATIO_64:J
-
SILVER_RATIO_64
public static final long SILVER_RATIO_64- See Also:
- Mappings:
Namespace Name Mixin selector official bLdhw;b:Jintermediary field_35134Lnet/minecraft/class_6673;field_35134:Jnamed SILVER_RATIO_64Lnet/minecraft/util/math/random/RandomSeed;SILVER_RATIO_64:J
-
SEED_UNIQUIFIER
- Mappings:
Namespace Name Mixin selector official cLdhw;c:Ljava/util/concurrent/atomic/AtomicLong;intermediary field_35135Lnet/minecraft/class_6673;field_35135:Ljava/util/concurrent/atomic/AtomicLong;named SEED_UNIQUIFIERLnet/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) - Mappings:
Namespace Name Mixin selector official aLdhw;a(J)Jintermediary method_39002Lnet/minecraft/class_6673;method_39002(J)Jnamed mixStafford13Lnet/minecraft/util/math/random/RandomSeed;mixStafford13(J)J
-
createXoroshiroSeed
- Mappings:
Namespace Name Mixin selector official bLdhw;b(J)Ldhw$a;intermediary method_39003Lnet/minecraft/class_6673;method_39003(J)Lnet/minecraft/class_6673$class_6674;named createXoroshiroSeedLnet/minecraft/util/math/random/RandomSeed;createXoroshiroSeed(J)Lnet/minecraft/util/math/random/RandomSeed$XoroshiroSeed;
-
getSeed
public static long getSeed()Returns the seed calculated usingSEED_UNIQUIFIERand the system time.- Returns:
- the seed calculated using
SEED_UNIQUIFIERand the system time - Mappings:
Namespace Name Mixin selector official aLdhw;a()Jintermediary method_39001Lnet/minecraft/class_6673;method_39001()Jnamed getSeedLnet/minecraft/util/math/random/RandomSeed;getSeed()J
-