类 XoroshiroRandomSource
java.lang.Object
net.minecraft.world.level.levelgen.XoroshiroRandomSource
- 所有已实现的接口:
RandomSource
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec
<XoroshiroRandomSource> private static final double
private static final float
private final MarsagliaPolarGaussian
private Xoroshiro128PlusPlus
从接口继承的字段 net.minecraft.util.RandomSource
GAUSSIAN_SPREAD_FACTOR
-
构造器概要
构造器限定符构造器说明XoroshiroRandomSource
(long p_190102_) XoroshiroRandomSource
(long p_190104_, long p_190105_) XoroshiroRandomSource
(RandomSupport.Seed128bit p_289014_) private
XoroshiroRandomSource
(Xoroshiro128PlusPlus p_287656_) -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.util.RandomSource
nextInt, nextIntBetweenInclusive, triangle, triangle
-
字段详细资料
-
FLOAT_UNIT
private static final float FLOAT_UNIT- 另请参阅:
-
DOUBLE_UNIT
private static final double DOUBLE_UNIT- 另请参阅:
-
CODEC
-
randomNumberGenerator
-
gaussianSource
-
-
构造器详细资料
-
XoroshiroRandomSource
public XoroshiroRandomSource(long p_190102_) -
XoroshiroRandomSource
-
XoroshiroRandomSource
public XoroshiroRandomSource(long p_190104_, long p_190105_) -
XoroshiroRandomSource
-
-
方法详细资料
-
fork
- 指定者:
fork
在接口中RandomSource
-
forkPositional
- 指定者:
forkPositional
在接口中RandomSource
-
setSeed
public void setSeed(long p_190121_) - 指定者:
setSeed
在接口中RandomSource
-
nextInt
public int nextInt()- 指定者:
nextInt
在接口中RandomSource
-
nextInt
public int nextInt(int p_190118_) - 指定者:
nextInt
在接口中RandomSource
-
nextLong
public long nextLong()- 指定者:
nextLong
在接口中RandomSource
-
nextBoolean
public boolean nextBoolean()- 指定者:
nextBoolean
在接口中RandomSource
-
nextFloat
public float nextFloat()- 指定者:
nextFloat
在接口中RandomSource
-
nextDouble
public double nextDouble()- 指定者:
nextDouble
在接口中RandomSource
-
nextGaussian
public double nextGaussian()- 指定者:
nextGaussian
在接口中RandomSource
-
consumeCount
public void consumeCount(int p_190111_) - 指定者:
consumeCount
在接口中RandomSource
-
nextBits
private long nextBits(int p_190108_)
-