Class ItemCriterion

All Implemented Interfaces:
Criterion<ItemCriterion.Conditions>

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

    • ItemCriterion

      public ItemCriterion()
  • Method Details

    • conditionsFromJson

      public ItemCriterion.Conditions conditionsFromJson(com.google.gson.JsonObject jsonObject, Optional<LootContextPredicate> optional, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in class AbstractCriterion<ItemCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lcc;a(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lbg;)Lcc$a;
      intermediary method_23890 Lnet/minecraft/class_4711;method_23890(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/class_5257;)Lnet/minecraft/class_4711$class_4712;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/ItemCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Ljava/util/Optional;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 Lcc;a(Lakr;Lgw;Lcjf;)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