Class VillagerTradeCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.VillagerTradeCriterion.Conditions
- All Implemented Interfaces:
CriterionConditions
- Enclosing class:
VillagerTradeCriterion
- Mappings:
Namespace Name official dd$a
intermediary net/minecraft/class_2140$class_2142
named net/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ItemPredicate
private final EntityPredicate.Extended
-
Constructor Summary
ConstructorDescriptionConditions
(EntityPredicate.Extended player, EntityPredicate.Extended villager, ItemPredicate item) -
Method Summary
Modifier and TypeMethodDescriptionany()
create
(EntityPredicate.Builder playerPredicate) boolean
matches
(LootContext merchantContext, ItemStack stack) toJson
(AdvancementEntityPredicateSerializer predicateSerializer) Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getId, getPlayerPredicate, toString
-
Field Details
-
villager
- Mappings:
Namespace Name Mixin selector official a
Ldd$a;a:Lbo$b;
intermediary field_9767
Lnet/minecraft/class_2140$class_2142;field_9767:Lnet/minecraft/class_2048$class_5258;
named villager
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;villager:Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
item
- Mappings:
Namespace Name Mixin selector official b
Ldd$a;b:Lca;
intermediary field_9766
Lnet/minecraft/class_2140$class_2142;field_9766:Lnet/minecraft/class_2073;
named item
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;item:Lnet/minecraft/predicate/item/ItemPredicate;
-
-
Constructor Details
-
Conditions
public Conditions(EntityPredicate.Extended player, EntityPredicate.Extended villager, ItemPredicate item) - Mappings:
Namespace Name Mixin selector official <init>
Ldd$a;<init>(Lbo$b;Lbo$b;Lca;)V
intermediary <init>
Lnet/minecraft/class_2140$class_2142;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2073;)V
named <init>
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/item/ItemPredicate;)V
-
-
Method Details
-
any
- Mappings:
Namespace Name Mixin selector official c
Ldd$a;c()Ldd$a;
intermediary method_9153
Lnet/minecraft/class_2140$class_2142;method_9153()Lnet/minecraft/class_2140$class_2142;
named any
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;any()Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;
-
create
- Mappings:
Namespace Name Mixin selector official a
Ldd$a;a(Lbo$a;)Ldd$a;
intermediary method_38914
Lnet/minecraft/class_2140$class_2142;method_38914(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_2140$class_2142;
named create
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;create(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;
-
matches
- Mappings:
Namespace Name Mixin selector official a
Ldd$a;a(Ldsd;Lcax;)Z
intermediary method_9154
Lnet/minecraft/class_2140$class_2142;method_9154(Lnet/minecraft/class_47;Lnet/minecraft/class_1799;)Z
named matches
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;matches(Lnet/minecraft/loot/context/LootContext;Lnet/minecraft/item/ItemStack;)Z
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- Mappings:
Namespace Name Mixin selector official a
Lan;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;
-