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

public record LootItemRandomChanceWithEnchantedBonusCondition

implements LootItemCondition

fcw
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

Field summary

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

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()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
m_oozesizv()
getAllowedParameters()
getRequiredParameters()
public boolean
a(ezh arg0)
test(LootContext arg0)
method_950(class_47 arg0)
m_unnywbrg(C_iakykpgh arg0)
test(LootContext arg0)
test(LootContext context)
public static LootItemCondition$Builder
a(jg$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)
conditionBuilder(HolderLookup$Provider enchantment, float unenchantedChance, float additionalChancePerLevel)
public float
c()
unenchantedChance()
comp_2865()
m_silffjjz()
unenchantedChance()
unenchantedChance()
public LevelBasedValue
d()
enchantedChance()
comp_2866()
m_udbopims()
enchantedChance()
enchantedChance()
public Holder<Enchantment>
e()
enchantment()
comp_2783()
m_heejmowr()
enchantment()
enchantment()