Class ConstantValue
java.lang.Object
net.minecraft.world.level.storage.loot.providers.number.ConstantValue
- All Implemented Interfaces:
 LootContextUser,NumberProvider
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ConstantValueexactly(float p_165693_) floatgetFloat(LootContext p_165695_) getType()inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validateMethods 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:
 getTypein interfaceNumberProvider
 - 
getFloat
- Specified by:
 getFloatin interfaceNumberProvider
 - 
exactly
 - 
equals
 - 
hashCode
public int hashCode() 
 -