Class ConsumeItemCriterion

All Implemented Interfaces:
Criterion<ConsumeItemCriterion.Conditions>

public class ConsumeItemCriterion extends AbstractCriterion<ConsumeItemCriterion.Conditions>
Mappings:
Namespace Name
official bb
intermediary net/minecraft/class_2010
named net/minecraft/advancement/criterion/ConsumeItemCriterion
  • Constructor Details

    • ConsumeItemCriterion

      public ConsumeItemCriterion()
  • Method Details

    • conditionsFromJson

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

      public void trigger(ServerPlayerEntity player, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbb;a(Lakr;Lcjf;)V
      intermediary method_8821 Lnet/minecraft/class_2010;method_8821(Lnet/minecraft/class_3222;Lnet/minecraft/class_1799;)V
      named trigger Lnet/minecraft/advancement/criterion/ConsumeItemCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/item/ItemStack;)V