Enum Class NullRandom

java.lang.Object
java.lang.Enum<NullRandom>
dev.latvian.mods.klib.random.NullRandom
All Implemented Interfaces:
KLibRandomSource, Serializable, Comparable<NullRandom>, Constable, net.minecraft.util.RandomSource, net.minecraft.world.level.levelgen.PositionalRandomFactory

public enum NullRandom extends Enum<NullRandom> implements net.minecraft.util.RandomSource, net.minecraft.world.level.levelgen.PositionalRandomFactory
  • Enum Constant Details

    • INSTANCE

      public static final NullRandom INSTANCE
  • Method Details

    • values

      public static NullRandom[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NullRandom valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fork

      public net.minecraft.util.RandomSource fork()
      Specified by:
      fork in interface net.minecraft.util.RandomSource
    • forkPositional

      public net.minecraft.world.level.levelgen.PositionalRandomFactory forkPositional()
      Specified by:
      forkPositional in interface net.minecraft.util.RandomSource
    • setSeed

      public void setSeed(long seed)
      Specified by:
      setSeed in interface net.minecraft.util.RandomSource
    • nextInt

      public int nextInt()
      Specified by:
      nextInt in interface net.minecraft.util.RandomSource
    • nextInt

      public int nextInt(int bound)
      Specified by:
      nextInt in interface net.minecraft.util.RandomSource
    • nextLong

      public long nextLong()
      Specified by:
      nextLong in interface net.minecraft.util.RandomSource
    • nextBoolean

      public boolean nextBoolean()
      Specified by:
      nextBoolean in interface net.minecraft.util.RandomSource
    • nextFloat

      public float nextFloat()
      Specified by:
      nextFloat in interface net.minecraft.util.RandomSource
    • nextDouble

      public double nextDouble()
      Specified by:
      nextDouble in interface net.minecraft.util.RandomSource
    • nextGaussian

      public double nextGaussian()
      Specified by:
      nextGaussian in interface net.minecraft.util.RandomSource
    • fromHashOf

      public net.minecraft.util.RandomSource fromHashOf(String seed)
      Specified by:
      fromHashOf in interface net.minecraft.world.level.levelgen.PositionalRandomFactory
    • fromSeed

      public net.minecraft.util.RandomSource fromSeed(long seed)
      Specified by:
      fromSeed in interface net.minecraft.world.level.levelgen.PositionalRandomFactory
    • at

      public net.minecraft.util.RandomSource at(int x, int y, int z)
      Specified by:
      at in interface net.minecraft.world.level.levelgen.PositionalRandomFactory
    • parityConfigString

      public void parityConfigString(StringBuilder info)
      Specified by:
      parityConfigString in interface net.minecraft.world.level.levelgen.PositionalRandomFactory