Class WorldgenRandom

java.lang.Object
java.util.Random
net.minecraft.world.level.levelgen.WorldgenRandom
All Implemented Interfaces:
Serializable, RandomGenerator, RandomSource

public class WorldgenRandom extends Random implements RandomSource
See Also:
  • Field Details

    • randomSource

      private final RandomSource randomSource
    • count

      private int count
  • Constructor Details

    • WorldgenRandom

      public WorldgenRandom(RandomSource p_190056_)
  • Method Details

    • getCount

      public int getCount()
    • fork

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

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

      public int next(int p_64708_)
      Overrides:
      next in class Random
    • setSeed

      public void setSeed(long p_190073_)
      Specified by:
      setSeed in interface RandomSource
      Overrides:
      setSeed in class Random
    • 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 Random seedSlimeChunk(int p_64686_, int p_64687_, long p_64688_, long p_64689_)