Package com.unascribed.ears.common.util
Class NotRandom
java.lang.Object
java.util.Random
com.unascribed.ears.common.util.NotRandom
- All Implemented Interfaces:
Serializable,RandomGenerator
A Random that always returns 0. Useful for versions of Minecraft where the cuboid list in a
model part is private, but there's a getRandomCuboid method that accepts a custom Random instance.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.random.RandomGenerator
RandomGenerator.ArbitrarilyJumpableGenerator, RandomGenerator.JumpableGenerator, RandomGenerator.LeapableGenerator, RandomGenerator.SplittableGenerator, RandomGenerator.StreamableGenerator -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.Random
doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextLong, setSeedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.random.RandomGenerator
isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLong
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NotRandom
public NotRandom()
-
-
Method Details
-
nextInt
public int nextInt()- Specified by:
nextIntin interfaceRandomGenerator- Overrides:
nextIntin classRandom
-
nextInt
public int nextInt(int bound) - Specified by:
nextIntin interfaceRandomGenerator- Overrides:
nextIntin classRandom
-