Class ConsumeItemCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.ConsumeItemCriterion.Conditions
All Implemented Interfaces:
CriterionConditions
Enclosing class:
ConsumeItemCriterion

public static class ConsumeItemCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official az$a
intermediary net/minecraft/class_2010$class_2012
named net/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions
  • Field Details

    • item

      private final ItemPredicate item
      Mappings:
      Namespace Name Mixin selector
      official a Laz$a;a:Lbw;
      intermediary field_9513 Lnet/minecraft/class_2010$class_2012;field_9513:Lnet/minecraft/class_2073;
      named item Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;item:Lnet/minecraft/predicate/item/ItemPredicate;
  • Constructor Details

    • Conditions

      public Conditions(EntityPredicate.Extended player, ItemPredicate item)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laz$a;<init>(Lbm$b;Lbw;)V
      intermediary <init> Lnet/minecraft/class_2010$class_2012;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2073;)V
      named <init> Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/item/ItemPredicate;)V
  • Method Details

    • any

      public static ConsumeItemCriterion.Conditions any()
      Mappings:
      Namespace Name Mixin selector
      official c Laz$a;c()Laz$a;
      intermediary method_8827 Lnet/minecraft/class_2010$class_2012;method_8827()Lnet/minecraft/class_2010$class_2012;
      named any Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;any()Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;
    • predicate

      public static ConsumeItemCriterion.Conditions predicate(ItemPredicate predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Laz$a;a(Lbw;)Laz$a;
      intermediary method_35112 Lnet/minecraft/class_2010$class_2012;method_35112(Lnet/minecraft/class_2073;)Lnet/minecraft/class_2010$class_2012;
      named predicate Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;predicate(Lnet/minecraft/predicate/item/ItemPredicate;)Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;
    • item

      public static ConsumeItemCriterion.Conditions item(ItemConvertible item)
      Mappings:
      Namespace Name Mixin selector
      official a Laz$a;a(Lbwo;)Laz$a;
      intermediary method_8828 Lnet/minecraft/class_2010$class_2012;method_8828(Lnet/minecraft/class_1935;)Lnet/minecraft/class_2010$class_2012;
      named item Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;item(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;
    • matches

      public boolean matches(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Laz$a;a(Lbqp;)Z
      intermediary method_8826 Lnet/minecraft/class_2010$class_2012;method_8826(Lnet/minecraft/class_1799;)Z
      named matches Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;matches(Lnet/minecraft/item/ItemStack;)Z
    • toJson

      public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lam;a(Lcq;)Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;