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

public record LootItemRandomChanceWithEnchantedBonusCondition

implements LootItemCondition

fae
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceWithEnchantedBonusCondition
net.minecraft.class_225
net.minecraft.unmapped.C_cbexmsqd
net.minecraft.loot.condition.RandomChanceWithEnchantedBonusLootCondition
net.minecraft.loot.condition.RandomChanceWithEnchantedBonusLootCondition
net.minecraft.src.C_336583_
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceWithEnchantedBonusCondition

Field summary

Modifier and TypeField
private final float
b
unenchantedChance
comp_2865
f_nnwgayka
unenchantedChance
unenchantedChance
f_336942_
private final LevelBasedValue
c
enchantedChance
comp_2866
f_ehaqdyzj
enchantedChance
enchantedChance
f_336885_
private final Holder<Enchantment>
g
enchantment
comp_2783
f_hbguvrmm
enchantment
enchantment
f_337283_
public static final com.mojang.serialization.MapCodec<LootItemRandomChanceWithEnchantedBonusCondition>
a
CODEC
field_45874
f_fqkbbqcs
CODEC
CODEC
f_337576_

Constructor summary

ModifierConstructor
public (float unenchantedChance, LevelBasedValue enchantedChance, Holder<Enchantment> enchantment)

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
m_pfwldqai()
getType()
getType()
m_7940_()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
m_oozesizv()
getAllowedParameters()
getRequiredParameters()
m_6231_()
public boolean
a(ewp arg0)
test(LootContext arg0)
method_950(class_47 arg0)
m_unnywbrg(C_iakykpgh arg0)
test(LootContext arg0)
test(LootContext arg0)
test(C_2811_ arg0)
public static LootItemCondition$Builder
a(js$a arg0, float arg1, float arg2)
randomChanceAndLootingBoost(HolderLookup$Provider arg0, float arg1, float arg2)
method_953(class_7225$class_7874 arg0, float arg1, float arg2)
m_qpnviojd(C_vtbxyypo$C_etmlgbig arg0, float arg1, float arg2)
builder(RegistryWrapper$WrapperLookup registries, float base, float perLevelAboveFirst)
m_338384_(C_213466_$C_254607_ p_343257_, float p_343637_, float p_342446_)
public float
c()
unenchantedChance()
comp_2865()
m_silffjjz()
unenchantedChance()
unenchantedChance()
f_336942_()
public LevelBasedValue
d()
enchantedChance()
comp_2866()
m_udbopims()
enchantedChance()
enchantedChance()
f_336885_()
public Holder<Enchantment>
e()
enchantment()
comp_2783()
m_heejmowr()
enchantment()
enchantment()
f_337283_()