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

public record LootItemRandomChanceWithEnchantedBonusCondition

implements LootItemCondition

evi
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceWithEnchantedBonusCondition
net.minecraft.class_225
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
unenchantedChance
f_336942_
private final LevelBasedValue
c
enchantedChance
comp_2866
enchantedChance
f_336885_
private final Holder<Enchantment>
g
enchantment
comp_2783
enchantment
f_337283_
public static final com.mojang.serialization.MapCodec<LootItemRandomChanceWithEnchantedBonusCondition>
a
CODEC
field_45874
CODEC
f_337576_

Constructor summary

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

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(err arg0)
test(LootContext arg0)
method_950(class_47 arg0)
test(LootContext arg0)
test(C_2811_ arg0)
public static LootItemCondition$Builder
a(jo$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)
builder(RegistryWrapper$WrapperLookup registryLookup, float base, float perLevelAboveFirst)
m_338384_(C_213466_$C_254607_ p_343257_, float p_343637_, float p_342446_)
public float
c()
unenchantedChance()
comp_2865()
unenchantedChance()
f_336942_()
public LevelBasedValue
d()
enchantedChance()
comp_2866()
enchantedChance()
f_336885_()
public Holder<Enchantment>
e()
enchantment()
comp_2783()
enchantment()
f_337283_()