Class UsedTotemCriterion.Conditions

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

public static class UsedTotemCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official dg$a
intermediary net/minecraft/class_2148$class_2150
named net/minecraft/advancement/criterion/UsedTotemCriterion$Conditions
  • Field Details

    • item

      private final ItemPredicate item
      Mappings:
      Namespace Name Mixin selector
      official a Ldg$a;a:Lbz;
      intermediary field_9777 Lnet/minecraft/class_2148$class_2150;field_9777:Lnet/minecraft/class_2073;
      named item Lnet/minecraft/advancement/criterion/UsedTotemCriterion$Conditions;item:Lnet/minecraft/predicate/item/ItemPredicate;
  • Constructor Details

    • Conditions

      public Conditions(LootContextPredicate player, ItemPredicate item)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldg$a;<init>(Lba;Lbz;)V
      intermediary <init> Lnet/minecraft/class_2148$class_2150;<init>(Lnet/minecraft/class_5258;Lnet/minecraft/class_2073;)V
      named <init> Lnet/minecraft/advancement/criterion/UsedTotemCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/predicate/item/ItemPredicate;)V
  • Method Details

    • create

      public static UsedTotemCriterion.Conditions create(ItemPredicate itemPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Ldg$a;a(Lbz;)Ldg$a;
      intermediary method_35399 Lnet/minecraft/class_2148$class_2150;method_35399(Lnet/minecraft/class_2073;)Lnet/minecraft/class_2148$class_2150;
      named create Lnet/minecraft/advancement/criterion/UsedTotemCriterion$Conditions;create(Lnet/minecraft/predicate/item/ItemPredicate;)Lnet/minecraft/advancement/criterion/UsedTotemCriterion$Conditions;
    • create

      public static UsedTotemCriterion.Conditions create(ItemConvertible item)
      Mappings:
      Namespace Name Mixin selector
      official a Ldg$a;a(Lcml;)Ldg$a;
      intermediary method_9170 Lnet/minecraft/class_2148$class_2150;method_9170(Lnet/minecraft/class_1935;)Lnet/minecraft/class_2148$class_2150;
      named create Lnet/minecraft/advancement/criterion/UsedTotemCriterion$Conditions;create(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/advancement/criterion/UsedTotemCriterion$Conditions;
    • matches

      public boolean matches(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Ldg$a;a(Lcfz;)Z
      intermediary method_9171 Lnet/minecraft/class_2148$class_2150;method_9171(Lnet/minecraft/class_1799;)Z
      named matches Lnet/minecraft/advancement/criterion/UsedTotemCriterion$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(Lct;)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;