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