Class InventoryChangedCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.InventoryChangedCriterion.Conditions
- All Implemented Interfaces:
CriterionConditions
- Enclosing class:
- InventoryChangedCriterion
public static class InventoryChangedCriterion.Conditions extends AbstractCriterionConditions
- Mappings:
Namespace Name official bn$a
intermediary net/minecraft/class_2066$class_2068
named net/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions
-
Field Summary
Fields Modifier and Type Field Description private NumberRange.IntRange
empty
private NumberRange.IntRange
full
private ItemPredicate[]
items
private NumberRange.IntRange
occupied
-
Constructor Summary
Constructors Constructor Description Conditions(EntityPredicate.Extended player, NumberRange.IntRange occupied, NumberRange.IntRange full, NumberRange.IntRange empty, ItemPredicate[] items)
-
Method Summary
Modifier and Type Method Description static InventoryChangedCriterion.Conditions
items(ItemConvertible[] items)
static InventoryChangedCriterion.Conditions
items(ItemPredicate[] items)
boolean
matches(PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)
JsonObject
toJson(AdvancementEntityPredicateSerializer predicateSerializer)
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getId, getPlayerPredicate, toString
-
Field Details
-
occupied
- Mappings:
Namespace Name Mixin selector official a
Lbn$a;a:Lbz$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
- Mappings:
Namespace Name Mixin selector official b
Lbn$a;b:Lbz$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
- Mappings:
Namespace Name Mixin selector official c
Lbn$a;c:Lbz$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
- Mappings:
Namespace Name Mixin selector official d
Lbn$a;d:[Lbq;
intermediary field_9632
Lnet/minecraft/class_2066$class_2068;field_9632:[Lnet/minecraft/class_2073;
named items
Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;items:[Lnet/minecraft/predicate/item/ItemPredicate;
-
-
Constructor Details
-
Conditions
public Conditions(EntityPredicate.Extended player, NumberRange.IntRange occupied, NumberRange.IntRange full, NumberRange.IntRange empty, ItemPredicate[] items)- Mappings:
Namespace Name Mixin selector official <init>
Lbn$a;<init>(Lbg$b;Lbz$d;Lbz$d;Lbz$d;[Lbq;)V
intermediary <init>
Lnet/minecraft/class_2066$class_2068;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;[Lnet/minecraft/class_2073;)V
named <init>
Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;[Lnet/minecraft/predicate/item/ItemPredicate;)V
-
-
Method Details
-
items
- Mappings:
Namespace Name Mixin selector official a
Lbn$a;a([Lbq;)Lbn$a;
intermediary method_8957
Lnet/minecraft/class_2066$class_2068;method_8957([Lnet/minecraft/class_2073;)Lnet/minecraft/class_2066$class_2068;
named items
Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;items([Lnet/minecraft/predicate/item/ItemPredicate;)Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;
-
items
- Mappings:
Namespace Name Mixin selector official a
Lbn$a;a([Lbtu;)Lbn$a;
intermediary method_8959
Lnet/minecraft/class_2066$class_2068;method_8959([Lnet/minecraft/class_1935;)Lnet/minecraft/class_2066$class_2068;
named items
Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;items([Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- Mappings:
Namespace Name Mixin selector official a
Lag;a(Lci;)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;
-
matches
public boolean matches(PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)- Mappings:
Namespace Name Mixin selector official a
Lbn$a;a(Lbhk;Lbnv;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
-