类 WorldgenRandom

java.lang.Object
net.minecraft.world.level.levelgen.LegacyRandomSource
net.minecraft.world.level.levelgen.WorldgenRandom
所有已实现的接口:
RandomSource, BitRandomSource

public class WorldgenRandom extends LegacyRandomSource
  • 字段详细资料

    • randomSource

      private final RandomSource randomSource
    • count

      private int count
  • 构造器详细资料

    • WorldgenRandom

      public WorldgenRandom(RandomSource pRandomSource)
  • 方法详细资料

    • getCount

      public int getCount()
    • fork

      public RandomSource fork()
      指定者:
      fork 在接口中 RandomSource
      覆盖:
      fork 在类中 LegacyRandomSource
    • forkPositional

      public PositionalRandomFactory 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

      public static RandomSource seedSlimeChunk(int pChunkX, int pChunkZ, long pLevelSeed, long pSalt)