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.loot.condition.RandomChanceWithEnchantedBonusLootCondition
net.minecraft.world.level.storage.loot.predicates.LootItemRandomChanceWithEnchantedBonusCondition

Field summary

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

Constructor summary

ModifierConstructor
public (float arg0, LevelBasedValue arg1, Holder<Enchantment> arg2)

Method summary

Modifier and TypeMethod
public LootItemConditionType
b()
getType()
method_29325()
getType()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public boolean
a(ewp arg0)
test(LootContext arg0)
method_950(class_47 arg0)
test(LootContext 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)
builder(RegistryWrapper$WrapperLookup registries, float base, float perLevelAboveFirst)
public float
c()
unenchantedChance()
comp_2865()
unenchantedChance()
public LevelBasedValue
d()
enchantedChance()
comp_2866()
enchantedChance()
public Holder<Enchantment>
e()
enchantment()
comp_2783()
enchantment()