Class RandomSeed

java.lang.Object
net.minecraft.util.math.random.RandomSeed

public final class RandomSeed extends Object
Mappings:
Namespace Name
named net/minecraft/util/math/random/RandomSeed
intermediary net/minecraft/class_6673
official dzk
  • Field Details

    • GOLDEN_RATIO_64

      public static final long GOLDEN_RATIO_64
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named GOLDEN_RATIO_64 Lnet/minecraft/util/math/random/RandomSeed;GOLDEN_RATIO_64:J
      intermediary field_35133 Lnet/minecraft/class_6673;field_35133:J
      official a Ldzk;a:J
    • SILVER_RATIO_64

      public static final long SILVER_RATIO_64
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SILVER_RATIO_64 Lnet/minecraft/util/math/random/RandomSeed;SILVER_RATIO_64:J
      intermediary field_35134 Lnet/minecraft/class_6673;field_35134:J
      official b Ldzk;b:J
    • MD5_HASH

      private static final HashFunction MD5_HASH
      Mappings:
      Namespace Name Mixin selector
      named MD5_HASH Lnet/minecraft/util/math/random/RandomSeed;MD5_HASH:Lcom/google/common/hash/HashFunction;
      intermediary field_44918 Lnet/minecraft/class_6673;field_44918:Lcom/google/common/hash/HashFunction;
      official c Ldzk;c:Lcom/google/common/hash/HashFunction;
    • SEED_UNIQUIFIER

      private static final AtomicLong SEED_UNIQUIFIER
      Mappings:
      Namespace Name Mixin selector
      named SEED_UNIQUIFIER Lnet/minecraft/util/math/random/RandomSeed;SEED_UNIQUIFIER:Ljava/util/concurrent/atomic/AtomicLong;
      intermediary field_35135 Lnet/minecraft/class_6673;field_35135:Ljava/util/concurrent/atomic/AtomicLong;
      official d Ldzk;d:Ljava/util/concurrent/atomic/AtomicLong;
  • Constructor Details

    • RandomSeed

      public RandomSeed()
  • Method Details

    • mixStafford13

      public static long mixStafford13(long seed)
      Mappings:
      Namespace Name Mixin selector
      named mixStafford13 Lnet/minecraft/util/math/random/RandomSeed;mixStafford13(J)J
      intermediary method_39002 Lnet/minecraft/class_6673;method_39002(J)J
      official a Ldzk;a(J)J
    • createUnmixedXoroshiroSeed

      public static RandomSeed.XoroshiroSeed createUnmixedXoroshiroSeed(long seed)
      Mappings:
      Namespace Name Mixin selector
      named createUnmixedXoroshiroSeed Lnet/minecraft/util/math/random/RandomSeed;createUnmixedXoroshiroSeed(J)Lnet/minecraft/util/math/random/RandomSeed$XoroshiroSeed;
      intermediary method_52211 Lnet/minecraft/class_6673;method_52211(J)Lnet/minecraft/class_6673$class_6674;
      official b Ldzk;b(J)Ldzk$a;
    • createXoroshiroSeed

      public static RandomSeed.XoroshiroSeed createXoroshiroSeed(long seed)
      Mappings:
      Namespace Name Mixin selector
      named createXoroshiroSeed Lnet/minecraft/util/math/random/RandomSeed;createXoroshiroSeed(J)Lnet/minecraft/util/math/random/RandomSeed$XoroshiroSeed;
      intermediary method_39003 Lnet/minecraft/class_6673;method_39003(J)Lnet/minecraft/class_6673$class_6674;
      official c Ldzk;c(J)Ldzk$a;
    • createXoroshiroSeed

      public static RandomSeed.XoroshiroSeed createXoroshiroSeed(String seed)
      Mappings:
      Namespace Name Mixin selector
      named createXoroshiroSeed Lnet/minecraft/util/math/random/RandomSeed;createXoroshiroSeed(Ljava/lang/String;)Lnet/minecraft/util/math/random/RandomSeed$XoroshiroSeed;
      intermediary method_52180 Lnet/minecraft/class_6673;method_52180(Ljava/lang/String;)Lnet/minecraft/class_6673$class_6674;
      official a Ldzk;a(Ljava/lang/String;)Ldzk$a;
    • getSeed

      public static long getSeed()
      Returns the seed calculated using SEED_UNIQUIFIER and the system time.
      Returns:
      the seed calculated using SEED_UNIQUIFIER and the system time
      Mappings:
      Namespace Name Mixin selector
      named getSeed Lnet/minecraft/util/math/random/RandomSeed;getSeed()J
      intermediary method_39001 Lnet/minecraft/class_6673;method_39001()J
      official a Ldzk;a()J