Class ItemCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.ItemCriterion.Conditions
- All Implemented Interfaces:
CriterionConditions
- Enclosing class:
ItemCriterion
- Mappings:
Namespace Name official ca$a
intermediary net/minecraft/class_4711$class_4712
named net/minecraft/advancement/criterion/ItemCriterion$Conditions
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConditions
(Identifier id, LootContextPredicate entity, LootContextPredicate location) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ItemCriterion.Conditions
create
(LocationPredicate.Builder location, ItemPredicate.Builder item, Identifier id) static ItemCriterion.Conditions
createAllayDropItemOnBlock
(LocationPredicate.Builder location, ItemPredicate.Builder item) static ItemCriterion.Conditions
createItemUsedOnBlock
(LocationPredicate.Builder location, ItemPredicate.Builder item) static ItemCriterion.Conditions
createPlacedBlock
(Block block) static ItemCriterion.Conditions
createPlacedBlock
(LootCondition.Builder[] locationConditions) boolean
test
(LootContext context) toJson
(AdvancementEntityPredicateSerializer predicateSerializer) Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getId, getPlayerPredicate, toString
-
Field Details
-
location
- Mappings:
Namespace Name Mixin selector official a
Lca$a;a:Lba;
intermediary field_24495
Lnet/minecraft/class_4711$class_4712;field_24495:Lnet/minecraft/class_5258;
named location
Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;location:Lnet/minecraft/predicate/entity/LootContextPredicate;
-
-
Constructor Details
-
Conditions
- Mappings:
Namespace Name Mixin selector official <init>
Lca$a;<init>(Lacq;Lba;Lba;)V
intermediary <init>
Lnet/minecraft/class_4711$class_4712;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_5258;Lnet/minecraft/class_5258;)V
named <init>
Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/predicate/entity/LootContextPredicate;)V
-
-
Method Details
-
createPlacedBlock
- Mappings:
Namespace Name Mixin selector official a
Lca$a;a(Lcpl;)Lca$a;
intermediary method_51710
Lnet/minecraft/class_4711$class_4712;method_51710(Lnet/minecraft/class_2248;)Lnet/minecraft/class_4711$class_4712;
named createPlacedBlock
Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;createPlacedBlock(Lnet/minecraft/block/Block;)Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;
-
createPlacedBlock
public static ItemCriterion.Conditions createPlacedBlock(LootCondition.Builder[] locationConditions) - Mappings:
Namespace Name Mixin selector official a
Lca$a;a([Lech$a;)Lca$a;
intermediary method_51712
Lnet/minecraft/class_4711$class_4712;method_51712([Lnet/minecraft/class_5341$class_210;)Lnet/minecraft/class_4711$class_4712;
named createPlacedBlock
Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;createPlacedBlock([Lnet/minecraft/loot/condition/LootCondition$Builder;)Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;
-
create
private static ItemCriterion.Conditions create(LocationPredicate.Builder location, ItemPredicate.Builder item, Identifier id) - Mappings:
Namespace Name Mixin selector official a
Lca$a;a(Lch$a;Lbz$a;Lacq;)Lca$a;
intermediary method_51709
Lnet/minecraft/class_4711$class_4712;method_51709(Lnet/minecraft/class_2090$class_2091;Lnet/minecraft/class_2073$class_2074;Lnet/minecraft/class_2960;)Lnet/minecraft/class_4711$class_4712;
named create
Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;create(Lnet/minecraft/predicate/entity/LocationPredicate$Builder;Lnet/minecraft/predicate/item/ItemPredicate$Builder;Lnet/minecraft/util/Identifier;)Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;
-
createItemUsedOnBlock
public static ItemCriterion.Conditions createItemUsedOnBlock(LocationPredicate.Builder location, ItemPredicate.Builder item) - Mappings:
Namespace Name Mixin selector official a
Lca$a;a(Lch$a;Lbz$a;)Lca$a;
intermediary method_27981
Lnet/minecraft/class_4711$class_4712;method_27981(Lnet/minecraft/class_2090$class_2091;Lnet/minecraft/class_2073$class_2074;)Lnet/minecraft/class_4711$class_4712;
named createItemUsedOnBlock
Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;createItemUsedOnBlock(Lnet/minecraft/predicate/entity/LocationPredicate$Builder;Lnet/minecraft/predicate/item/ItemPredicate$Builder;)Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;
-
createAllayDropItemOnBlock
public static ItemCriterion.Conditions createAllayDropItemOnBlock(LocationPredicate.Builder location, ItemPredicate.Builder item) - Mappings:
Namespace Name Mixin selector official b
Lca$a;b(Lch$a;Lbz$a;)Lca$a;
intermediary method_43125
Lnet/minecraft/class_4711$class_4712;method_43125(Lnet/minecraft/class_2090$class_2091;Lnet/minecraft/class_2073$class_2074;)Lnet/minecraft/class_4711$class_4712;
named createAllayDropItemOnBlock
Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;createAllayDropItemOnBlock(Lnet/minecraft/predicate/entity/LocationPredicate$Builder;Lnet/minecraft/predicate/item/ItemPredicate$Builder;)Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;
-
test
- Mappings:
Namespace Name Mixin selector official a
Lca$a;a(Ldzh;)Z
intermediary method_51711
Lnet/minecraft/class_4711$class_4712;method_51711(Lnet/minecraft/class_47;)Z
named test
Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;test(Lnet/minecraft/loot/context/LootContext;)Z
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- 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;
-