Class ItemCriterion

All Implemented Interfaces:
Criterion<ItemCriterion.Conditions>

public class ItemCriterion extends AbstractCriterion<ItemCriterion.Conditions>
Mappings:
Namespace Name
official ca
intermediary net/minecraft/class_4711
named net/minecraft/advancement/criterion/ItemCriterion
  • Field Details

    • id

      final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official a Lca;a:Lacq;
      intermediary field_21576 Lnet/minecraft/class_4711;field_21576:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/advancement/criterion/ItemCriterion;id:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • ItemCriterion

      public ItemCriterion(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lca;<init>(Lacq;)V
      intermediary <init> Lnet/minecraft/class_4711;<init>(Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/advancement/criterion/ItemCriterion;<init>(Lnet/minecraft/util/Identifier;)V
  • Method Details

    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lal;a()Lacq;
      intermediary method_794 Lnet/minecraft/class_179;method_794()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/advancement/criterion/Criterion;getId()Lnet/minecraft/util/Identifier;
    • conditionsFromJson

      public ItemCriterion.Conditions conditionsFromJson(JsonObject jsonObject, LootContextPredicate lootContextPredicate, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in class AbstractCriterion<ItemCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lca;a(Lcom/google/gson/JsonObject;Lba;Lbe;)Lca$a;
      intermediary method_23890 Lnet/minecraft/class_4711;method_23890(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5258;Lnet/minecraft/class_5257;)Lnet/minecraft/class_4711$class_4712;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/ItemCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;
    • trigger

      public void trigger(ServerPlayerEntity player, BlockPos pos, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lca;a(Laig;Lgu;Lcfz;)V
      intermediary method_23889 Lnet/minecraft/class_4711;method_23889(Lnet/minecraft/class_3222;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)V
      named trigger Lnet/minecraft/advancement/criterion/ItemCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)V