Class EnchantedItemCriterion

All Implemented Interfaces:
Criterion<EnchantedItemCriterion.Conditions>

public class EnchantedItemCriterion extends AbstractCriterion<EnchantedItemCriterion.Conditions>
Mappings:
Namespace Name
named net/minecraft/advancement/criterion/EnchantedItemCriterion
intermediary net/minecraft/class_2030
official bo
  • Constructor Details

    • EnchantedItemCriterion

      public EnchantedItemCriterion()
  • Method Details

    • getConditionsCodec

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

      public void trigger(ServerPlayerEntity player, ItemStack stack, int levels)
      Mappings:
      Namespace Name Mixin selector
      named trigger Lnet/minecraft/advancement/criterion/EnchantedItemCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/item/ItemStack;I)V
      intermediary method_8870 Lnet/minecraft/class_2030;method_8870(Lnet/minecraft/class_3222;Lnet/minecraft/class_1799;I)V
      official a Lbo;a(Larg;Lcuq;I)V