Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface net.minecraft.util.RandomSource
GAUSSIAN_SPREAD_FACTOR -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.RandomSourceat(int x, int y, int z) net.minecraft.util.RandomSourcefork()net.minecraft.world.level.levelgen.PositionalRandomFactorynet.minecraft.util.RandomSourcefromHashOf(String seed) net.minecraft.util.RandomSourcefromSeed(long seed) booleandoublefloatdoubleintnextInt()intnextInt(int bound) longnextLong()voidvoidsetSeed(long seed) static NullRandomReturns the enum constant of this class with the specified name.static NullRandom[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface KLibRandomSource
klib$self, nextCirclePosition, nextCuboidPosition, nextCuboidPosition, nextCuboidPosition, nextOuterCirclePosition, nextOuterSpherePosition, nextRange, nextRange, nextRange, nextRange, nextSpherePosition, rollMethods inherited from interface net.minecraft.world.level.levelgen.PositionalRandomFactory
at, fromHashOfMethods inherited from interface net.minecraft.util.RandomSource
consumeCount, nextInt, nextIntBetweenInclusive, triangle, triangle
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fork
public net.minecraft.util.RandomSource fork()- Specified by:
forkin interfacenet.minecraft.util.RandomSource
-
forkPositional
public net.minecraft.world.level.levelgen.PositionalRandomFactory forkPositional()- Specified by:
forkPositionalin interfacenet.minecraft.util.RandomSource
-
setSeed
public void setSeed(long seed) - Specified by:
setSeedin interfacenet.minecraft.util.RandomSource
-
nextInt
public int nextInt()- Specified by:
nextIntin interfacenet.minecraft.util.RandomSource
-
nextInt
public int nextInt(int bound) - Specified by:
nextIntin interfacenet.minecraft.util.RandomSource
-
nextLong
public long nextLong()- Specified by:
nextLongin interfacenet.minecraft.util.RandomSource
-
nextBoolean
public boolean nextBoolean()- Specified by:
nextBooleanin interfacenet.minecraft.util.RandomSource
-
nextFloat
public float nextFloat()- Specified by:
nextFloatin interfacenet.minecraft.util.RandomSource
-
nextDouble
public double nextDouble()- Specified by:
nextDoublein interfacenet.minecraft.util.RandomSource
-
nextGaussian
public double nextGaussian()- Specified by:
nextGaussianin interfacenet.minecraft.util.RandomSource
-
fromHashOf
- Specified by:
fromHashOfin interfacenet.minecraft.world.level.levelgen.PositionalRandomFactory
-
fromSeed
public net.minecraft.util.RandomSource fromSeed(long seed) - Specified by:
fromSeedin interfacenet.minecraft.world.level.levelgen.PositionalRandomFactory
-
at
public net.minecraft.util.RandomSource at(int x, int y, int z) - Specified by:
atin interfacenet.minecraft.world.level.levelgen.PositionalRandomFactory
-
parityConfigString
- Specified by:
parityConfigStringin interfacenet.minecraft.world.level.levelgen.PositionalRandomFactory
-