Class ThrownItemPickedUpByEntityCriterion.Conditions

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

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

    • item

      private final Optional<ItemPredicate> item
      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a:Ljava/util/Optional;
      intermediary field_24493 Lnet/minecraft/class_5279$class_5280;field_24493:Ljava/util/Optional;
      named item Lnet/minecraft/advancement/criterion/ThrownItemPickedUpByEntityCriterion$Conditions;item:Ljava/util/Optional;
    • entity

      private final Optional<LootContextPredicate> entity
      Mappings:
      Namespace Name Mixin selector
      official b Lco$a;b:Ljava/util/Optional;
      intermediary field_24494 Lnet/minecraft/class_5279$class_5280;field_24494:Ljava/util/Optional;
      named entity Lnet/minecraft/advancement/criterion/ThrownItemPickedUpByEntityCriterion$Conditions;entity:Ljava/util/Optional;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> optional, Optional<ItemPredicate> playerPredicate, Optional<LootContextPredicate> item)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lco$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_5279$class_5280;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/advancement/criterion/ThrownItemPickedUpByEntityCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • createThrownItemPickedUpByEntity

      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a(Lbc;Ljava/util/Optional;Ljava/util/Optional;)Lam;
      intermediary method_27978 Lnet/minecraft/class_5279$class_5280;method_27978(Lnet/minecraft/class_5258;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named createThrownItemPickedUpByEntity Lnet/minecraft/advancement/criterion/ThrownItemPickedUpByEntityCriterion$Conditions;createThrownItemPickedUpByEntity(Lnet/minecraft/predicate/entity/LootContextPredicate;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createThrownItemPickedUpByPlayer

      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lam;
      intermediary method_43277 Lnet/minecraft/class_5279$class_5280;method_43277(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named createThrownItemPickedUpByPlayer Lnet/minecraft/advancement/criterion/ThrownItemPickedUpByEntityCriterion$Conditions;createThrownItemPickedUpByPlayer(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • test

      public boolean test(ServerPlayerEntity player, ItemStack stack, LootContext entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lco$a;a(Lakr;Lcjf;Lecq;)Z
      intermediary method_27979 Lnet/minecraft/class_5279$class_5280;method_27979(Lnet/minecraft/class_3222;Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Z
      named test Lnet/minecraft/advancement/criterion/ThrownItemPickedUpByEntityCriterion$Conditions;test(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Z
    • toJson

      public com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      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;