类 WorldgenRandom
java.lang.Object
net.minecraft.world.level.levelgen.LegacyRandomSource
net.minecraft.world.level.levelgen.WorldgenRandom
- 所有已实现的接口:
RandomSource
,BitRandomSource
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.level.levelgen.LegacyRandomSource
LegacyRandomSource.LegacyPositionalRandomFactory
-
字段概要
字段从接口继承的字段 net.minecraft.world.level.levelgen.BitRandomSource
DOUBLE_MULTIPLIER, FLOAT_MULTIPLIER
从接口继承的字段 net.minecraft.util.RandomSource
GAUSSIAN_SPREAD_FACTOR
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明fork()
int
getCount()
int
next
(int pBits) static RandomSource
seedSlimeChunk
(int pChunkX, int pChunkZ, long pLevelSeed, long pSalt) long
setDecorationSeed
(long pLevelSeed, int pMinChunkBlockX, int pMinChunkBlockZ) void
setFeatureSeed
(long pDecorationSeed, int pIndex, int pDecorationStep) void
setLargeFeatureSeed
(long pBaseSeed, int pChunkX, int pChunkZ) void
setLargeFeatureWithSalt
(long pLevelSeed, int pRegionX, int pRegionZ, int pSalt) void
setSeed
(long pSeed) 从类继承的方法 net.minecraft.world.level.levelgen.LegacyRandomSource
nextGaussian
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.levelgen.BitRandomSource
nextBoolean, nextDouble, nextFloat, nextInt, nextInt, nextLong
从接口继承的方法 net.minecraft.util.RandomSource
consumeCount, nextInt, nextIntBetweenInclusive, triangle
-
字段详细资料
-
randomSource
-
count
private int count
-
-
构造器详细资料
-
WorldgenRandom
-
-
方法详细资料
-
getCount
public int getCount() -
fork
- 指定者:
fork
在接口中RandomSource
- 覆盖:
fork
在类中LegacyRandomSource
-
forkPositional
- 指定者:
forkPositional
在接口中RandomSource
- 覆盖:
forkPositional
在类中LegacyRandomSource
-
next
public int next(int pBits) - 指定者:
next
在接口中BitRandomSource
- 覆盖:
next
在类中LegacyRandomSource
-
setSeed
public void setSeed(long pSeed) - 指定者:
setSeed
在接口中RandomSource
- 覆盖:
setSeed
在类中LegacyRandomSource
-
setDecorationSeed
public long setDecorationSeed(long pLevelSeed, int pMinChunkBlockX, int pMinChunkBlockZ) -
setFeatureSeed
public void setFeatureSeed(long pDecorationSeed, int pIndex, int pDecorationStep) -
setLargeFeatureSeed
public void setLargeFeatureSeed(long pBaseSeed, int pChunkX, int pChunkZ) -
setLargeFeatureWithSalt
public void setLargeFeatureWithSalt(long pLevelSeed, int pRegionX, int pRegionZ, int pSalt) -
seedSlimeChunk
-