Class ThreadSafeRandom

java.lang.Object
net.minecraft.util.math.random.ThreadSafeRandom
All Implemented Interfaces:
BaseRandom, Random

@Deprecated public class ThreadSafeRandom extends Object implements BaseRandom
Deprecated.
A random that can be shared by multiple threads safely.
Mappings:
Namespace Name
official dhv
intermediary net/minecraft/class_7384
named net/minecraft/util/math/random/ThreadSafeRandom
  • Field Details

    • INT_BITS

      private static final int INT_BITS
      Deprecated.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldhv;d:I
      intermediary field_38760 Lnet/minecraft/class_7384;field_38760:I
      named INT_BITS Lnet/minecraft/util/math/random/ThreadSafeRandom;INT_BITS:I
    • SEED_MASK

      private static final long SEED_MASK
      Deprecated.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Ldhv;e:J
      intermediary field_38761 Lnet/minecraft/class_7384;field_38761:J
      named SEED_MASK Lnet/minecraft/util/math/random/ThreadSafeRandom;SEED_MASK:J
    • MULTIPLIER

      private static final long MULTIPLIER
      Deprecated.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Ldhv;f:J
      intermediary field_38762 Lnet/minecraft/class_7384;field_38762:J
      named MULTIPLIER Lnet/minecraft/util/math/random/ThreadSafeRandom;MULTIPLIER:J
    • INCREMENT

      private static final long INCREMENT
      Deprecated.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Ldhv;g:J
      intermediary field_38763 Lnet/minecraft/class_7384;field_38763:J
      named INCREMENT Lnet/minecraft/util/math/random/ThreadSafeRandom;INCREMENT:J
    • seed

      private final AtomicLong seed
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official h Ldhv;h:Ljava/util/concurrent/atomic/AtomicLong;
      intermediary field_38764 Lnet/minecraft/class_7384;field_38764:Ljava/util/concurrent/atomic/AtomicLong;
      named seed Lnet/minecraft/util/math/random/ThreadSafeRandom;seed:Ljava/util/concurrent/atomic/AtomicLong;
    • gaussianGenerator

      private final GaussianGenerator gaussianGenerator
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official i Ldhv;i:Ldhe;
      intermediary field_38765 Lnet/minecraft/class_7384;field_38765:Lnet/minecraft/class_6672;
      named gaussianGenerator Lnet/minecraft/util/math/random/ThreadSafeRandom;gaussianGenerator:Lnet/minecraft/util/math/random/GaussianGenerator;
  • Constructor Details

    • ThreadSafeRandom

      public ThreadSafeRandom(long seed)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldhv;<init>(J)V
      intermediary <init> Lnet/minecraft/class_7384;<init>(J)V
      named <init> Lnet/minecraft/util/math/random/ThreadSafeRandom;<init>(J)V
  • Method Details

    • split

      public Random split()
      Deprecated.
      Specified by:
      split in interface Random
      Mappings:
      Namespace Name Mixin selector
      official d Lapd;d()Lapd;
      intermediary method_38420 Lnet/minecraft/class_5819;method_38420()Lnet/minecraft/class_5819;
      named split Lnet/minecraft/util/math/random/Random;split()Lnet/minecraft/util/math/random/Random;
    • nextSplitter

      public RandomSplitter nextSplitter()
      Deprecated.
      Specified by:
      nextSplitter in interface Random
      Mappings:
      Namespace Name Mixin selector
      official e Lapd;e()Ldhp;
      intermediary method_38421 Lnet/minecraft/class_5819;method_38421()Lnet/minecraft/class_6574;
      named nextSplitter Lnet/minecraft/util/math/random/Random;nextSplitter()Lnet/minecraft/util/math/random/RandomSplitter;
    • setSeed

      public void setSeed(long seed)
      Deprecated.
      Specified by:
      setSeed in interface Random
      Mappings:
      Namespace Name Mixin selector
      official b Lapd;b(J)V
      intermediary method_43052 Lnet/minecraft/class_5819;method_43052(J)V
      named setSeed Lnet/minecraft/util/math/random/Random;setSeed(J)V
    • next

      public int next(int bits)
      Deprecated.
      Specified by:
      next in interface BaseRandom
      Mappings:
      Namespace Name Mixin selector
      official c Ldgr;c(I)I
      intermediary method_43156 Lnet/minecraft/class_6566;method_43156(I)I
      named next Lnet/minecraft/util/math/random/BaseRandom;next(I)I
    • nextGaussian

      public double nextGaussian()
      Deprecated.
      Specified by:
      nextGaussian in interface Random
      Mappings:
      Namespace Name Mixin selector
      official k Lapd;k()D
      intermediary method_43059 Lnet/minecraft/class_5819;method_43059()D
      named nextGaussian Lnet/minecraft/util/math/random/Random;nextGaussian()D