Package net.minecraft.loot.operator
Class BoundedIntUnaryOperator
java.lang.Object
net.minecraft.loot.operator.BoundedIntUnaryOperator
- All Implemented Interfaces:
IntUnaryOperator
public class BoundedIntUnaryOperator extends Object implements IntUnaryOperator
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BoundedIntUnaryOperator.Serializer
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
BoundedIntUnaryOperator(Integer min, Integer max)
-
Method Summary
Modifier and Type Method Description int
applyAsInt(int value)
static BoundedIntUnaryOperator
create(int min, int max)
static BoundedIntUnaryOperator
createMax(int max)
static BoundedIntUnaryOperator
createMin(int min)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.IntUnaryOperator
andThen, compose
-
Field Details
-
min
-
max
-
operator
-
-
Constructor Details
-
BoundedIntUnaryOperator
-
-
Method Details
-
create
-
createMin
-
createMax
-
applyAsInt
public int applyAsInt(int value)- Specified by:
applyAsInt
in interfaceIntUnaryOperator
-