net.minecraft.world.level.storage.loot.predicates

public record LootItemRandomChanceWithLootingCondition

implements LootItemCondition

efv
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceWithLootingCondition
net.minecraft.class_225
net.minecraft.loot.condition.RandomChanceWithLootingLootCondition
net.minecraft.src.C_3016_
net.minecraft.world.level.storage.loot.predicates.LootItemConditionRandomChanceWithLooting

Field summary

Modifier and TypeField
private final float
b
percent
comp_1882
chance
f_81953_
private final float
c
lootingMultiplier
comp_1883
lootingMultiplier
f_81954_
public static final com.mojang.serialization.Codec<LootItemRandomChanceWithLootingCondition>
a
CODEC
field_45874
CODEC
f_291054_

Constructor summary

ModifierConstructor
public (float chance, float lootingMultiplier)

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
getType()
m_7940_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public boolean
a(ecq arg0)
test(LootContext arg0)
method_950(class_47 arg0)
test(LootContext arg0)
test(C_2811_ arg0)
public static LootItemCondition$Builder
a(float arg0, float arg1)
randomChanceAndLootingBoost(float arg0, float arg1)
method_953(float arg0, float arg1)
builder(float chance, float lootingMultiplier)
m_81963_(float p_81964_, float p_81965_)
public float
c()
percent()
comp_1882()
chance()
f_81953_()
public float
d()
lootingMultiplier()
comp_1883()
lootingMultiplier()
f_81954_()