Class ConstantInt
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
net.minecraft.util.valueproviders.ConstantInt
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<ConstantInt>
private int
static 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
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
-