Class PlayerInteractedWithEntityCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.PlayerInteractedWithEntityCriterion.Conditions
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
PlayerInteractedWithEntityCriterion
public static class PlayerInteractedWithEntityCriterion.Conditions
extends AbstractCriterionConditions
- Mappings:
Namespace Name official cq$a
intermediary net/minecraft/class_5409$class_5410
named net/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<LootContextPredicate>
private final Optional<ItemPredicate>
-
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(Optional<LootContextPredicate> playerPredicate, ItemPredicate.Builder item, Optional<LootContextPredicate> entity) create
(ItemPredicate.Builder item, Optional<LootContextPredicate> entity) boolean
test
(ItemStack stack, LootContext entity) toJson()
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getPlayerPredicate
-
Field Details
-
item
- Mappings:
Namespace Name Mixin selector official a
Lcq$a;a:Ljava/util/Optional;
intermediary field_25700
Lnet/minecraft/class_5409$class_5410;field_25700:Ljava/util/Optional;
named item
Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;item:Ljava/util/Optional;
-
entity
- Mappings:
Namespace Name Mixin selector official b
Lcq$a;b:Ljava/util/Optional;
intermediary field_25701
Lnet/minecraft/class_5409$class_5410;field_25701:Ljava/util/Optional;
named entity
Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;entity:Ljava/util/Optional;
-
-
Constructor Details
-
Conditions
public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) - Mappings:
Namespace Name Mixin selector official <init>
Lcq$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_5409$class_5410;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
create
public static AdvancementCriterion<PlayerInteractedWithEntityCriterion.Conditions> create(Optional<LootContextPredicate> playerPredicate, ItemPredicate.Builder item, Optional<LootContextPredicate> entity) - Mappings:
Namespace Name Mixin selector official a
Lcq$a;a(Ljava/util/Optional;Lcb$a;Ljava/util/Optional;)Lam;
intermediary method_30099
Lnet/minecraft/class_5409$class_5410;method_30099(Ljava/util/Optional;Lnet/minecraft/class_2073$class_2074;Ljava/util/Optional;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;create(Ljava/util/Optional;Lnet/minecraft/predicate/item/ItemPredicate$Builder;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
-
create
public static AdvancementCriterion<PlayerInteractedWithEntityCriterion.Conditions> create(ItemPredicate.Builder item, Optional<LootContextPredicate> entity) - Mappings:
Namespace Name Mixin selector official a
Lcq$a;a(Lcb$a;Ljava/util/Optional;)Lam;
intermediary method_43278
Lnet/minecraft/class_5409$class_5410;method_43278(Lnet/minecraft/class_2073$class_2074;Ljava/util/Optional;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;create(Lnet/minecraft/predicate/item/ItemPredicate$Builder;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
-
test
- Mappings:
Namespace Name Mixin selector official a
Lcq$a;a(Lcjf;Lecq;)Z
intermediary method_30100
Lnet/minecraft/class_5409$class_5410;method_30100(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Z
named test
Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;test(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Z
-
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;
-