Class VillagerTradeCriterion

All Implemented Interfaces:
Criterion<VillagerTradeCriterion.Conditions>

public class VillagerTradeCriterion extends AbstractCriterion<VillagerTradeCriterion.Conditions>
Mappings:
Namespace Name
official de
intermediary net/minecraft/class_2140
named net/minecraft/advancement/criterion/VillagerTradeCriterion
  • Constructor Details

    • VillagerTradeCriterion

      public VillagerTradeCriterion()
  • Method Details

    • getConditionsCodec

      public com.mojang.serialization.Codec<VillagerTradeCriterion.Conditions> getConditionsCodec()
      Mappings:
      Namespace Name Mixin selector
      official a Lap;a()Lcom/mojang/serialization/Codec;
      intermediary method_54937 Lnet/minecraft/class_179;method_54937()Lcom/mojang/serialization/Codec;
      named getConditionsCodec Lnet/minecraft/advancement/criterion/Criterion;getConditionsCodec()Lcom/mojang/serialization/Codec;
    • trigger

      public void trigger(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lde;a(Lane;Lceq;Lcmy;)V
      intermediary method_9146 Lnet/minecraft/class_2140;method_9146(Lnet/minecraft/class_3222;Lnet/minecraft/class_3988;Lnet/minecraft/class_1799;)V
      named trigger Lnet/minecraft/advancement/criterion/VillagerTradeCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/passive/MerchantEntity;Lnet/minecraft/item/ItemStack;)V