Class WorldgenRandom

java.lang.Object
net.minecraft.world.level.levelgen.LegacyRandomSource
net.minecraft.world.level.levelgen.WorldgenRandom
All Implemented Interfaces:
RandomSource, BitRandomSource

public class WorldgenRandom extends LegacyRandomSource
  • Field Details

    • randomSource

      private final RandomSource randomSource
    • count

      private int count
  • Constructor Details

    • WorldgenRandom

      public WorldgenRandom(RandomSource p_224680_)
  • Method Details

    • getCount

      public int getCount()
    • fork

      public RandomSource fork()
      Specified by:
      fork in interface RandomSource
      Overrides:
      fork in class LegacyRandomSource
    • forkPositional

      public PositionalRandomFactory forkPositional()
      Specified by:
      forkPositional in interface RandomSource
      Overrides:
      forkPositional in class LegacyRandomSource
    • next

      public int next(int p_64708_)
      Specified by:
      next in interface BitRandomSource
      Overrides:
      next in class LegacyRandomSource
    • setSeed

      public void setSeed(long p_190073_)
      Specified by:
      setSeed in interface RandomSource
      Overrides:
      setSeed in class LegacyRandomSource
    • setDecorationSeed

      public long setDecorationSeed(long p_64691_, int p_64692_, int p_64693_)
    • setFeatureSeed

      public void setFeatureSeed(long p_190065_, int p_190066_, int p_190067_)
    • setLargeFeatureSeed

      public void setLargeFeatureSeed(long p_190069_, int p_190070_, int p_190071_)
    • setLargeFeatureWithSalt

      public void setLargeFeatureWithSalt(long p_190059_, int p_190060_, int p_190061_, int p_190062_)
    • seedSlimeChunk

      public static RandomSource seedSlimeChunk(int p_224682_, int p_224683_, long p_224684_, long p_224685_)