Class VillagerTradeCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.VillagerTradeCriterion.Conditions
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
VillagerTradeCriterion
- Mappings:
Namespace Name official df$a
intermediary net/minecraft/class_2140$class_2142
named net/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<ItemPredicate>
private final Optional<LootContextPredicate>
-
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> villager, Optional<ItemPredicate> item) -
Method Summary
Modifier and TypeMethodDescriptionany()
create
(EntityPredicate.Builder playerPredicate) boolean
matches
(LootContext villager, ItemStack stack) com.google.gson.JsonObject
toJson()
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getPlayerPredicate
-
Field Details
-
villager
- Mappings:
Namespace Name Mixin selector official a
Ldf$a;a:Ljava/util/Optional;
intermediary field_9767
Lnet/minecraft/class_2140$class_2142;field_9767:Ljava/util/Optional;
named villager
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;villager:Ljava/util/Optional;
-
item
- Mappings:
Namespace Name Mixin selector official b
Ldf$a;b:Ljava/util/Optional;
intermediary field_9766
Lnet/minecraft/class_2140$class_2142;field_9766:Ljava/util/Optional;
named item
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;item:Ljava/util/Optional;
-
-
Constructor Details
-
Conditions
public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> villager, Optional<ItemPredicate> item) - Mappings:
Namespace Name Mixin selector official <init>
Ldf$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_2140$class_2142;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
any
- Mappings:
Namespace Name Mixin selector official c
Ldf$a;c()Lam;
intermediary method_9153
Lnet/minecraft/class_2140$class_2142;method_9153()Lnet/minecraft/class_175;
named any
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;any()Lnet/minecraft/advancement/AdvancementCriterion;
-
create
public static AdvancementCriterion<VillagerTradeCriterion.Conditions> create(EntityPredicate.Builder playerPredicate) - Mappings:
Namespace Name Mixin selector official a
Ldf$a;a(Lbq$a;)Lam;
intermediary method_38914
Lnet/minecraft/class_2140$class_2142;method_38914(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/VillagerTradeCriterion$Conditions;create(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
-
matches
- Mappings:
Namespace Name Mixin selector official a
Ldf$a;a(Lecq;Lcjf;)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
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;
-