Class FishingRodHookedCriterion.Conditions

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

public static class FishingRodHookedCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official bw$a
intermediary net/minecraft/class_2058$class_2060
named net/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions
  • Field Details

    • rod

      private final Optional<ItemPredicate> rod
      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a:Ljava/util/Optional;
      intermediary field_9621 Lnet/minecraft/class_2058$class_2060;field_9621:Ljava/util/Optional;
      named rod Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;rod:Ljava/util/Optional;
    • hookedEntity

      private final Optional<LootContextPredicate> hookedEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbw$a;b:Ljava/util/Optional;
      intermediary field_24391 Lnet/minecraft/class_2058$class_2060;field_24391:Ljava/util/Optional;
      named hookedEntity Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;hookedEntity:Ljava/util/Optional;
    • caughtItem

      private final Optional<ItemPredicate> caughtItem
      Mappings:
      Namespace Name Mixin selector
      official c Lbw$a;c:Ljava/util/Optional;
      intermediary field_9623 Lnet/minecraft/class_2058$class_2060;field_9623:Ljava/util/Optional;
      named caughtItem Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;caughtItem:Ljava/util/Optional;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> rod, Optional<LootContextPredicate> hookedEntity, Optional<ItemPredicate> caughtItem)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbw$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_2058$class_2060;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lam;
      intermediary method_8947 Lnet/minecraft/class_2058$class_2060;method_8947(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;create(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • matches

      public boolean matches(ItemStack rodStack, LootContext hookedEntity, Collection<ItemStack> fishingLoots)
      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a(Lcjf;Lecq;Ljava/util/Collection;)Z
      intermediary method_27810 Lnet/minecraft/class_2058$class_2060;method_27810(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;Ljava/util/Collection;)Z
      named matches Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;matches(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;Ljava/util/Collection;)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;