net.minecraft.loot.condition

public record RandomChanceWithEnchantedBonusLootCondition

implements LootCondition

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

Field summary

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

Constructor summary

ModifierConstructor
public (float unenchantedChance, EnchantmentLevelBasedValue enchantedChance, RegistryEntry<Enchantment> enchantment)

Method summary

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