Class PlayerInteractedWithEntityCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.PlayerInteractedWithEntityCriterion.Conditions
- All Implemented Interfaces:
CriterionConditions
- Enclosing class:
- PlayerInteractedWithEntityCriterion
public static class PlayerInteractedWithEntityCriterion.Conditions extends AbstractCriterionConditions
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate.Extended
entity
private ItemPredicate
item
-
Constructor Summary
Constructors Constructor Description Conditions(EntityPredicate.Extended player, ItemPredicate item, EntityPredicate.Extended entity)
-
Method Summary
Modifier and Type Method Description static PlayerInteractedWithEntityCriterion.Conditions
create(EntityPredicate.Extended player, ItemPredicate.Builder itemBuilder, EntityPredicate.Extended entity)
boolean
test(ItemStack stack, LootContext context)
JsonObject
toJson(AdvancementEntityPredicateSerializer predicateSerializer)
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getId, getPlayerPredicate, toString
-
Field Details
-
item
-
entity
-
-
Constructor Details
-
Conditions
public Conditions(EntityPredicate.Extended player, ItemPredicate item, EntityPredicate.Extended entity)
-
-
Method Details
-
create
public static PlayerInteractedWithEntityCriterion.Conditions create(EntityPredicate.Extended player, ItemPredicate.Builder itemBuilder, EntityPredicate.Extended entity) -
test
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
-