Class EnchantedItemCriterion.Conditions

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

public static class EnchantedItemCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official bi$a
intermediary net/minecraft/class_2030$class_2032
named net/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions
  • Field Details

    • item

      private final ItemPredicate item
      Mappings:
      Namespace Name Mixin selector
      official a Lbi$a;a:Lby;
      intermediary field_9567 Lnet/minecraft/class_2030$class_2032;field_9567:Lnet/minecraft/class_2073;
      named item Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;item:Lnet/minecraft/predicate/item/ItemPredicate;
    • levels

      private final NumberRange.IntRange levels
      Mappings:
      Namespace Name Mixin selector
      official b Lbi$a;b:Lcj$d;
      intermediary field_9568 Lnet/minecraft/class_2030$class_2032;field_9568:Lnet/minecraft/class_2096$class_2100;
      named levels Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;levels:Lnet/minecraft/predicate/NumberRange$IntRange;
  • Constructor Details

    • Conditions

      public Conditions(EntityPredicate.Extended player, ItemPredicate item, NumberRange.IntRange levels)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbi$a;<init>(Lbo$b;Lby;Lcj$d;)V
      intermediary <init> Lnet/minecraft/class_2030$class_2032;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2073;Lnet/minecraft/class_2096$class_2100;)V
      named <init> Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/item/ItemPredicate;Lnet/minecraft/predicate/NumberRange$IntRange;)V
  • Method Details

    • any

      public static EnchantedItemCriterion.Conditions any()
      Mappings:
      Namespace Name Mixin selector
      official c Lbi$a;c()Lbi$a;
      intermediary method_8877 Lnet/minecraft/class_2030$class_2032;method_8877()Lnet/minecraft/class_2030$class_2032;
      named any Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;any()Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;
    • matches

      public boolean matches(ItemStack stack, int levels)
      Mappings:
      Namespace Name Mixin selector
      official a Lbi$a;a(Lbtx;I)Z
      intermediary method_8878 Lnet/minecraft/class_2030$class_2032;method_8878(Lnet/minecraft/class_1799;I)Z
      named matches Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;matches(Lnet/minecraft/item/ItemStack;I)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 Lan;a(Lcr;)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;