Package net.minecraft.loot
Class IntClamper
- java.lang.Object
-
- net.minecraft.loot.IntClamper
-
- All Implemented Interfaces:
java.util.function.IntUnaryOperator
public class IntClamper extends java.lang.Object implements java.util.function.IntUnaryOperator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IntClamper.Serializer
-
Constructor Summary
Constructors Modifier Constructor Description private
IntClamper(java.lang.Integer p_i51273_1_, java.lang.Integer p_i51273_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
applyAsInt(int p_applyAsInt_1_)
static IntClamper
clamp(int p_215843_0_, int p_215843_1_)
static IntClamper
lowerBound(int p_215848_0_)
static IntClamper
upperBound(int p_215851_0_)
-
-
-
Method Detail
-
clamp
public static IntClamper clamp(int p_215843_0_, int p_215843_1_)
-
lowerBound
public static IntClamper lowerBound(int p_215848_0_)
-
upperBound
public static IntClamper upperBound(int p_215851_0_)
-
applyAsInt
public int applyAsInt(int p_applyAsInt_1_)
- Specified by:
applyAsInt
in interfacejava.util.function.IntUnaryOperator
-
-