public static class PlayerInteractedWithEntityCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private EntityPredicate.Extended |
entity |
private ItemPredicate |
item |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
ItemPredicate item,
EntityPredicate.Extended entity) |
Modifier and Type | Method and Description |
---|---|
static PlayerInteractedWithEntityCriterion.Conditions |
create(EntityPredicate.Extended player,
ItemPredicate.Builder itemBuilder,
EntityPredicate.Extended entity) |
boolean |
test(ItemStack stack,
LootContext context) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final ItemPredicate item
private final EntityPredicate.Extended entity
public Conditions(EntityPredicate.Extended player, ItemPredicate item, EntityPredicate.Extended entity)
public static PlayerInteractedWithEntityCriterion.Conditions create(EntityPredicate.Extended player, ItemPredicate.Builder itemBuilder, EntityPredicate.Extended entity)
public boolean test(ItemStack stack, LootContext context)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions