Package net.minecraft.world.gen
Class SimpleRandom
java.lang.Object
net.minecraft.world.gen.SimpleRandom
- All Implemented Interfaces:
WorldGenRandom
public class SimpleRandom extends Object implements WorldGenRandom
- Mappings:
Namespace Name official cmw
intermediary net/minecraft/class_5820
named net/minecraft/world/gen/SimpleRandom
-
Field Summary
Fields Modifier and Type Field Description private boolean
field_28767
private AtomicLong
seed
-
Constructor Summary
Constructors Constructor Description SimpleRandom(long seed)
-
Method Summary
Modifier and Type Method Description private int
next(int bits)
double
nextDouble()
int
nextInt()
int
nextInt(int bound)
void
setSeed(long seed)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.gen.WorldGenRandom
skip
-
Field Details
-
seed
- Mappings:
Namespace Name Mixin selector official a
Lcmw;a:Ljava/util/concurrent/atomic/AtomicLong;
intermediary field_28766
Lnet/minecraft/class_5820;field_28766:Ljava/util/concurrent/atomic/AtomicLong;
named seed
Lnet/minecraft/world/gen/SimpleRandom;seed:Ljava/util/concurrent/atomic/AtomicLong;
-
field_28767
private boolean field_28767- Mappings:
Namespace Name Mixin selector official c
Lcmw;c:Z
intermediary field_28767
Lnet/minecraft/class_5820;field_28767:Z
named field_28767
Lnet/minecraft/world/gen/SimpleRandom;field_28767:Z
-
-
Constructor Details
-
SimpleRandom
public SimpleRandom(long seed)- Mappings:
Namespace Name Mixin selector official <init>
Lcmw;<init>(J)V
intermediary <init>
Lnet/minecraft/class_5820;<init>(J)V
named <init>
Lnet/minecraft/world/gen/SimpleRandom;<init>(J)V
-
-
Method Details
-
setSeed
public void setSeed(long seed)- Mappings:
Namespace Name Mixin selector official setSeed
Lcmw;setSeed(J)V
intermediary setSeed
Lnet/minecraft/class_5820;setSeed(J)V
named setSeed
Lnet/minecraft/world/gen/SimpleRandom;setSeed(J)V
-
next
private int next(int bits)- Mappings:
Namespace Name Mixin selector official b
Lcmw;b(I)I
intermediary method_33651
Lnet/minecraft/class_5820;method_33651(I)I
named next
Lnet/minecraft/world/gen/SimpleRandom;next(I)I
-
nextInt
public int nextInt()- Specified by:
nextInt
in interfaceWorldGenRandom
- Mappings:
Namespace Name Mixin selector official nextInt
Lcmv;nextInt()I
intermediary nextInt
Lnet/minecraft/class_5819;nextInt()I
named nextInt
Lnet/minecraft/world/gen/WorldGenRandom;nextInt()I
-
nextInt
public int nextInt(int bound)- Specified by:
nextInt
in interfaceWorldGenRandom
- Mappings:
Namespace Name Mixin selector official nextInt
Lcmv;nextInt(I)I
intermediary nextInt
Lnet/minecraft/class_5819;nextInt(I)I
named nextInt
Lnet/minecraft/world/gen/WorldGenRandom;nextInt(I)I
-
nextDouble
public double nextDouble()- Specified by:
nextDouble
in interfaceWorldGenRandom
- Mappings:
Namespace Name Mixin selector official nextDouble
Lcmv;nextDouble()D
intermediary nextDouble
Lnet/minecraft/class_5819;nextDouble()D
named nextDouble
Lnet/minecraft/world/gen/WorldGenRandom;nextDouble()D
-