public class VillagerTradeCriterion extends AbstractCriterion<VillagerTradeCriterion.Conditions>
Modifier and Type | Class and Description |
---|---|
static class |
VillagerTradeCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private static Identifier |
ID |
Constructor and Description |
---|
VillagerTradeCriterion() |
Modifier and Type | Method and Description |
---|---|
VillagerTradeCriterion.Conditions |
conditionsFromJson(JsonObject jsonObject,
EntityPredicate.Extended extended,
AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) |
Identifier |
getId() |
void |
handle(ServerPlayerEntity player,
MerchantEntity merchant,
ItemStack stack) |
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, test
private static final Identifier ID
public Identifier getId()
public VillagerTradeCriterion.Conditions conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
conditionsFromJson
in class AbstractCriterion<VillagerTradeCriterion.Conditions>
public void handle(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack)