Class ConstantInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.ConstantInt
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConstantInt>
private final int
static final ConstantInt
Fields inherited from class net.minecraft.util.valueproviders.IntProvider
NON_NEGATIVE_CODEC, POSITIVE_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getType()
int
getValue()
static ConstantInt
of
(int p_146484_) int
sample
(RandomSource p_216854_) toString()
Methods inherited from class net.minecraft.util.valueproviders.IntProvider
codec
-
Field Details
-
ZERO
-
CODEC
-
value
private final int value
-
-
Constructor Details
-
ConstantInt
private ConstantInt(int p_146481_)
-
-
Method Details
-
of
-
getValue
public int getValue() -
sample
- Specified by:
sample
in classIntProvider
-
getMinValue
public int getMinValue()- Specified by:
getMinValue
in classIntProvider
-
getMaxValue
public int getMaxValue()- Specified by:
getMaxValue
in classIntProvider
-
getType
- Specified by:
getType
in classIntProvider
-
toString
-