net.minecraft.world.level.storage.loot.providers.number

public record ConstantValue

implements NumberProvider

far
net.minecraft.world.level.storage.loot.providers.number.ConstantValue
net.minecraft.class_44
net.minecraft.loot.provider.number.ConstantLootNumberProvider
net.minecraft.world.level.storage.loot.providers.number.ConstantValue

Field summary

Modifier and TypeField
private final float
c
value
comp_1895
value
public static final com.mojang.serialization.MapCodec<ConstantValue>
a
CODEC
field_45886
CODEC
public static final com.mojang.serialization.Codec<ConstantValue>
b
INLINE_CODEC
field_45887
INLINE_CODEC

Constructor summary

ModifierConstructor
public (float value)

Method summary

Modifier and TypeMethod
public LootNumberProviderType
b()
getType()
method_365()
getType()
public float
b(ewp arg0)
getFloat(LootContext arg0)
method_32454(class_47 arg0)
nextFloat(LootContext arg0)
public static ConstantValue
a(float arg0)
exactly(float arg0)
method_32448(float arg0)
create(float value)
public float
c()
value()
comp_1895()
value()