Class InventoryChangedCriterion.Conditions

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

public static class InventoryChangedCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official bz$a
intermediary net/minecraft/class_2066$class_2068
named net/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions
  • Field Details

    • occupied

      private final NumberRange.IntRange occupied
      Mappings:
      Namespace Name Mixin selector
      official a Lbz$a;a:Lcl$d;
      intermediary field_9629 Lnet/minecraft/class_2066$class_2068;field_9629:Lnet/minecraft/class_2096$class_2100;
      named occupied Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;occupied:Lnet/minecraft/predicate/NumberRange$IntRange;
    • full

      private final NumberRange.IntRange full
      Mappings:
      Namespace Name Mixin selector
      official b Lbz$a;b:Lcl$d;
      intermediary field_9630 Lnet/minecraft/class_2066$class_2068;field_9630:Lnet/minecraft/class_2096$class_2100;
      named full Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;full:Lnet/minecraft/predicate/NumberRange$IntRange;
    • empty

      private final NumberRange.IntRange empty
      Mappings:
      Namespace Name Mixin selector
      official c Lbz$a;c:Lcl$d;
      intermediary field_9631 Lnet/minecraft/class_2066$class_2068;field_9631:Lnet/minecraft/class_2096$class_2100;
      named empty Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;empty:Lnet/minecraft/predicate/NumberRange$IntRange;
    • items

      private final List<ItemPredicate> items
      Mappings:
      Namespace Name Mixin selector
      official d Lbz$a;d:Ljava/util/List;
      intermediary field_9632 Lnet/minecraft/class_2066$class_2068;field_9632:Ljava/util/List;
      named items Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;items:Ljava/util/List;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, NumberRange.IntRange occupied, NumberRange.IntRange full, NumberRange.IntRange empty, List<ItemPredicate> items)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbz$a;<init>(Ljava/util/Optional;Lcl$d;Lcl$d;Lcl$d;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_2066$class_2068;<init>(Ljava/util/Optional;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;Ljava/util/List;)V
      named <init> Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;<init>(Ljava/util/Optional;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;Ljava/util/List;)V
  • Method Details

    • items

      Mappings:
      Namespace Name Mixin selector
      official a Lbz$a;a([Lcb$a;)Lam;
      intermediary method_53160 Lnet/minecraft/class_2066$class_2068;method_53160([Lnet/minecraft/class_2073$class_2074;)Lnet/minecraft/class_175;
      named items Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;items([Lnet/minecraft/predicate/item/ItemPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
    • items

      Mappings:
      Namespace Name Mixin selector
      official a Lbz$a;a([Lcb;)Lam;
      intermediary method_8957 Lnet/minecraft/class_2066$class_2068;method_8957([Lnet/minecraft/class_2073;)Lnet/minecraft/class_175;
      named items Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;items([Lnet/minecraft/predicate/item/ItemPredicate;)Lnet/minecraft/advancement/AdvancementCriterion;
    • items

      Mappings:
      Namespace Name Mixin selector
      official a Lbz$a;a([Lcpu;)Lam;
      intermediary method_8959 Lnet/minecraft/class_2066$class_2068;method_8959([Lnet/minecraft/class_1935;)Lnet/minecraft/class_175;
      named items Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;items([Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/advancement/AdvancementCriterion;
    • 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;
    • matches

      public boolean matches(PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)
      Mappings:
      Namespace Name Mixin selector
      official a Lbz$a;a(Lcbt;Lcjf;III)Z
      intermediary method_8958 Lnet/minecraft/class_2066$class_2068;method_8958(Lnet/minecraft/class_1661;Lnet/minecraft/class_1799;III)Z
      named matches Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;matches(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/item/ItemStack;III)Z