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

public record DamageSourceCondition

implements LootItemCondition

ezr
net.minecraft.world.level.storage.loot.predicates.DamageSourceCondition
net.minecraft.class_190
net.minecraft.loot.condition.DamageSourcePropertiesLootCondition
net.minecraft.world.level.storage.loot.predicates.LootItemConditionDamageSourceProperties

Field summary

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

Constructor summary

ModifierConstructor
public (Optional<DamageSourcePredicate> arg0)

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_834(class_47 arg0)
test(LootContext arg0)
public static LootItemCondition$Builder
a(bl$a arg0)
hasDamageSource(DamageSourcePredicate$Builder arg0)
method_837(class_2022$class_2023 arg0)
builder(DamageSourcePredicate$Builder builder)
public Optional<DamageSourcePredicate>
c()
predicate()
comp_1870()
predicate()