Class ConsumeItemCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.ConsumeItemCriterion.Conditions
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
ConsumeItemCriterion
- Mappings:
Namespace Name official bb$a
intermediary net/minecraft/class_2010$class_2012
named net/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item) -
Method Summary
Modifier and TypeMethodDescriptionany()
item
(ItemConvertible item) boolean
predicate
(ItemPredicate.Builder builder) com.google.gson.JsonObject
toJson()
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getPlayerPredicate
-
Field Details
-
item
- Mappings:
Namespace Name Mixin selector official a
Lbb$a;a:Ljava/util/Optional;
intermediary field_9513
Lnet/minecraft/class_2010$class_2012;field_9513:Ljava/util/Optional;
named item
Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;item:Ljava/util/Optional;
-
-
Constructor Details
-
Conditions
- Mappings:
Namespace Name Mixin selector official <init>
Lbb$a;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_2010$class_2012;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
any
- Mappings:
Namespace Name Mixin selector official c
Lbb$a;c()Lam;
intermediary method_8827
Lnet/minecraft/class_2010$class_2012;method_8827()Lnet/minecraft/class_175;
named any
Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;any()Lnet/minecraft/advancement/AdvancementCriterion;
-
item
- Mappings:
Namespace Name Mixin selector official a
Lbb$a;a(Lcpu;)Lam;
intermediary method_8828
Lnet/minecraft/class_2010$class_2012;method_8828(Lnet/minecraft/class_1935;)Lnet/minecraft/class_175;
named item
Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;item(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/advancement/AdvancementCriterion;
-
predicate
public static AdvancementCriterion<ConsumeItemCriterion.Conditions> predicate(ItemPredicate.Builder builder) - Mappings:
Namespace Name Mixin selector official a
Lbb$a;a(Lcb$a;)Lam;
intermediary method_35112
Lnet/minecraft/class_2010$class_2012;method_35112(Lnet/minecraft/class_2073$class_2074;)Lnet/minecraft/class_175;
named predicate
Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;predicate(Lnet/minecraft/predicate/item/ItemPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
-
matches
- Mappings:
Namespace Name Mixin selector official a
Lbb$a;a(Lcjf;)Z
intermediary method_8826
Lnet/minecraft/class_2010$class_2012;method_8826(Lnet/minecraft/class_1799;)Z
named matches
Lnet/minecraft/advancement/criterion/ConsumeItemCriterion$Conditions;matches(Lnet/minecraft/item/ItemStack;)Z
-
toJson
public com.google.gson.JsonObject toJson()- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- 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;
-