Class EnchantedItemCriterion

All Implemented Interfaces:
Criterion<EnchantedItemCriterion.Conditions>

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

    • EnchantedItemCriterion

      public EnchantedItemCriterion()
  • Method Details

    • conditionsFromJson

      public EnchantedItemCriterion.Conditions conditionsFromJson(com.google.gson.JsonObject jsonObject, Optional<LootContextPredicate> optional, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in class AbstractCriterion<EnchantedItemCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lbk;a(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lbg;)Lbk$a;
      intermediary method_8872 Lnet/minecraft/class_2030;method_8872(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2030$class_2032;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/EnchantedItemCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;
    • trigger

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