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

public record DamageSourceCondition

implements LootItemCondition

euv
net.minecraft.world.level.storage.loot.predicates.DamageSourceCondition
net.minecraft.class_190
net.minecraft.loot.condition.DamageSourcePropertiesLootCondition
net.minecraft.src.C_2986_
net.minecraft.world.level.storage.loot.predicates.LootItemConditionDamageSourceProperties

Field summary

Modifier and TypeField
private final Optional<DamageSourcePredicate>
b
predicate
comp_1870
predicate
f_81582_
public static final com.mojang.serialization.MapCodec<DamageSourceCondition>
a
CODEC
field_45862
CODEC
f_290674_

Constructor summary

ModifierConstructor
public (Optional<DamageSourcePredicate> arg0)

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_834(class_47 arg0)
test(LootContext arg0)
test(C_2811_ arg0)
public static LootItemCondition$Builder
a(bk$a arg0)
hasDamageSource(DamageSourcePredicate$Builder arg0)
method_837(class_2022$class_2023 arg0)
builder(DamageSourcePredicate$Builder builder)
m_81589_(C_696_$C_697_ p_81590_)
public Optional<DamageSourcePredicate>
c()
predicate()
comp_1870()
predicate()
f_81582_()