Class UsingItemCriterion.Conditions

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

public static class UsingItemCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official di$a
intermediary net/minecraft/class_6409$class_6410
named net/minecraft/advancement/criterion/UsingItemCriterion$Conditions
  • Field Details

    • item

      private final Optional<ItemPredicate> item
      Mappings:
      Namespace Name Mixin selector
      official a Ldi$a;a:Ljava/util/Optional;
      intermediary field_33938 Lnet/minecraft/class_6409$class_6410;field_33938:Ljava/util/Optional;
      named item Lnet/minecraft/advancement/criterion/UsingItemCriterion$Conditions;item:Ljava/util/Optional;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldi$a;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_6409$class_6410;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/advancement/criterion/UsingItemCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      official a Ldi$a;a(Lbq$a;Lcb$a;)Lam;
      intermediary method_37265 Lnet/minecraft/class_6409$class_6410;method_37265(Lnet/minecraft/class_2048$class_2049;Lnet/minecraft/class_2073$class_2074;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/UsingItemCriterion$Conditions;create(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Lnet/minecraft/predicate/item/ItemPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
    • test

      public boolean test(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Ldi$a;a(Lcjf;)Z
      intermediary method_37266 Lnet/minecraft/class_6409$class_6410;method_37266(Lnet/minecraft/class_1799;)Z
      named test Lnet/minecraft/advancement/criterion/UsingItemCriterion$Conditions;test(Lnet/minecraft/item/ItemStack;)Z
    • toJson

      public com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lap;a()Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;