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 classBoundedIntUnaryOperator.Serializer -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateBoundedIntUnaryOperator(Integer min, Integer max) -
Method Summary
Modifier and Type Method Description intapplyAsInt(int value)static BoundedIntUnaryOperatorcreate(int min, int max)static BoundedIntUnaryOperatorcreateMax(int max)static BoundedIntUnaryOperatorcreateMin(int min)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
applyAsIntin interfaceIntUnaryOperator
-