Class ConstantValue
java.lang.Object
net.minecraft.world.level.storage.loot.providers.number.ConstantValue
- All Implemented Interfaces:
LootContextUser
,NumberProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static ConstantValue
exactly
(float p_165693_) float
getFloat
(LootContext p_165695_) getType()
int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
Methods inherited from interface net.minecraft.world.level.storage.loot.providers.number.NumberProvider
getInt
-
Field Details
-
value
final float value
-
-
Constructor Details
-
ConstantValue
ConstantValue(float p_165690_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceNumberProvider
-
getFloat
- Specified by:
getFloat
in interfaceNumberProvider
-
exactly
-
equals
-
hashCode
public int hashCode()
-