Class PlayerInteractedWithEntityCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.PlayerInteractedWithEntityCriterion.Conditions
All Implemented Interfaces:
CriterionConditions
Enclosing class:
PlayerInteractedWithEntityCriterion

public static class PlayerInteractedWithEntityCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official co$a
intermediary net/minecraft/class_5409$class_5410
named net/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions
  • Field Details

    • item

      private final ItemPredicate item
      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a:Lbz;
      intermediary field_25700 Lnet/minecraft/class_5409$class_5410;field_25700:Lnet/minecraft/class_2073;
      named item Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;item:Lnet/minecraft/predicate/item/ItemPredicate;
    • entity

      private final LootContextPredicate entity
      Mappings:
      Namespace Name Mixin selector
      official b Lco$a;b:Lba;
      intermediary field_25701 Lnet/minecraft/class_5409$class_5410;field_25701:Lnet/minecraft/class_5258;
      named entity Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;entity:Lnet/minecraft/predicate/entity/LootContextPredicate;
  • Constructor Details

    • Conditions

      public Conditions(LootContextPredicate player, ItemPredicate item, LootContextPredicate entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lco$a;<init>(Lba;Lbz;Lba;)V
      intermediary <init> Lnet/minecraft/class_5409$class_5410;<init>(Lnet/minecraft/class_5258;Lnet/minecraft/class_2073;Lnet/minecraft/class_5258;)V
      named <init> Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/predicate/item/ItemPredicate;Lnet/minecraft/predicate/entity/LootContextPredicate;)V
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a(Lba;Lbz$a;Lba;)Lco$a;
      intermediary method_30099 Lnet/minecraft/class_5409$class_5410;method_30099(Lnet/minecraft/class_5258;Lnet/minecraft/class_2073$class_2074;Lnet/minecraft/class_5258;)Lnet/minecraft/class_5409$class_5410;
      named create Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;create(Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/predicate/item/ItemPredicate$Builder;Lnet/minecraft/predicate/entity/LootContextPredicate;)Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;
    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a(Lbz$a;Lba;)Lco$a;
      intermediary method_43278 Lnet/minecraft/class_5409$class_5410;method_43278(Lnet/minecraft/class_2073$class_2074;Lnet/minecraft/class_5258;)Lnet/minecraft/class_5409$class_5410;
      named create Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;create(Lnet/minecraft/predicate/item/ItemPredicate$Builder;Lnet/minecraft/predicate/entity/LootContextPredicate;)Lnet/minecraft/advancement/criterion/PlayerInteractedWithEntityCriterion$Conditions;
    • test

      public boolean test(ItemStack stack, LootContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a(Lcfz;Ldzk;)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

      public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      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;