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

public record LootItemEntityPropertyCondition

implements LootItemCondition

fab
net.minecraft.world.level.storage.loot.predicates.LootItemEntityPropertyCondition
net.minecraft.class_215
net.minecraft.loot.condition.EntityPropertiesLootCondition
net.minecraft.world.level.storage.loot.predicates.LootItemConditionEntityProperty

Field summary

Modifier and TypeField
private final Optional<EntityPredicate>
b
predicate
comp_1879
predicate
private final LootContext$EntityTarget
c
entityTarget
comp_1880
entity
public static final com.mojang.serialization.MapCodec<LootItemEntityPropertyCondition>
a
CODEC
field_45871
CODEC

Constructor summary

ModifierConstructor
public (Optional<EntityPredicate> arg0, LootContext$EntityTarget entity)

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_914(class_47 arg0)
test(LootContext arg0)
public static LootItemCondition$Builder
a(ewp$b arg0)
entityPresent(LootContext$EntityTarget arg0)
method_15972(class_47$class_50 arg0)
create(LootContext$EntityTarget entity)
public static LootItemCondition$Builder
a(ewp$b arg0, bw$a arg1)
hasProperties(LootContext$EntityTarget arg0, EntityPredicate$Builder arg1)
method_917(class_47$class_50 arg0, class_2048$class_2049 arg1)
builder(LootContext$EntityTarget entity, EntityPredicate$Builder predicateBuilder)
public static LootItemCondition$Builder
a(ewp$b arg0, bw arg1)
hasProperties(LootContext$EntityTarget arg0, EntityPredicate arg1)
method_27865(class_47$class_50 arg0, class_2048 arg1)
builder(LootContext$EntityTarget entity, EntityPredicate predicate)
public Optional<EntityPredicate>
c()
predicate()
comp_1879()
predicate()
public LootContext$EntityTarget
d()
entityTarget()
comp_1880()
entity()