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 cmwintermediary net/minecraft/class_5820named net/minecraft/world/gen/SimpleRandom
-
Field Summary
Fields Modifier and Type Field Description private booleanfield_28767private AtomicLongseed -
Constructor Summary
Constructors Constructor Description SimpleRandom(long seed) -
Method Summary
Modifier and Type Method Description private intnext(int bits)doublenextDouble()intnextInt()intnextInt(int bound)voidsetSeed(long seed)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.gen.WorldGenRandom
skip
-
Field Details
-
seed
- Mappings:
Namespace Name Mixin selector official aLcmw;a:Ljava/util/concurrent/atomic/AtomicLong;intermediary field_28766Lnet/minecraft/class_5820;field_28766:Ljava/util/concurrent/atomic/AtomicLong;named seedLnet/minecraft/world/gen/SimpleRandom;seed:Ljava/util/concurrent/atomic/AtomicLong;
-
field_28767
private boolean field_28767- Mappings:
Namespace Name Mixin selector official cLcmw;c:Zintermediary field_28767Lnet/minecraft/class_5820;field_28767:Znamed field_28767Lnet/minecraft/world/gen/SimpleRandom;field_28767:Z
-
-
Constructor Details
-
SimpleRandom
public SimpleRandom(long seed)- Mappings:
Namespace Name Mixin selector official <init>Lcmw;<init>(J)Vintermediary <init>Lnet/minecraft/class_5820;<init>(J)Vnamed <init>Lnet/minecraft/world/gen/SimpleRandom;<init>(J)V
-
-
Method Details
-
setSeed
public void setSeed(long seed)- Mappings:
Namespace Name Mixin selector official setSeedLcmw;setSeed(J)Vintermediary setSeedLnet/minecraft/class_5820;setSeed(J)Vnamed setSeedLnet/minecraft/world/gen/SimpleRandom;setSeed(J)V
-
next
private int next(int bits)- Mappings:
Namespace Name Mixin selector official bLcmw;b(I)Iintermediary method_33651Lnet/minecraft/class_5820;method_33651(I)Inamed nextLnet/minecraft/world/gen/SimpleRandom;next(I)I
-
nextInt
public int nextInt()- Specified by:
nextIntin interfaceWorldGenRandom- Mappings:
Namespace Name Mixin selector official nextIntLcmv;nextInt()Iintermediary nextIntLnet/minecraft/class_5819;nextInt()Inamed nextIntLnet/minecraft/world/gen/WorldGenRandom;nextInt()I
-
nextInt
public int nextInt(int bound)- Specified by:
nextIntin interfaceWorldGenRandom- Mappings:
Namespace Name Mixin selector official nextIntLcmv;nextInt(I)Iintermediary nextIntLnet/minecraft/class_5819;nextInt(I)Inamed nextIntLnet/minecraft/world/gen/WorldGenRandom;nextInt(I)I
-
nextDouble
public double nextDouble()- Specified by:
nextDoublein interfaceWorldGenRandom- Mappings:
Namespace Name Mixin selector official nextDoubleLcmv;nextDouble()Dintermediary nextDoubleLnet/minecraft/class_5819;nextDouble()Dnamed nextDoubleLnet/minecraft/world/gen/WorldGenRandom;nextDouble()D
-