Class FishingRodHookedCriterion.Conditions

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

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

    • rod

      private final ItemPredicate rod
      Mappings:
      Namespace Name Mixin selector
      official a Lbq$a;a:Lbw;
      intermediary field_9621 Lnet/minecraft/class_2058$class_2060;field_9621:Lnet/minecraft/class_2073;
      named rod Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;rod:Lnet/minecraft/predicate/item/ItemPredicate;
    • hookedEntity

      private final EntityPredicate.Extended hookedEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbq$a;b:Lbm$b;
      intermediary field_24391 Lnet/minecraft/class_2058$class_2060;field_24391:Lnet/minecraft/class_2048$class_5258;
      named hookedEntity Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;hookedEntity:Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
    • caughtItem

      private final ItemPredicate caughtItem
      Mappings:
      Namespace Name Mixin selector
      official c Lbq$a;c:Lbw;
      intermediary field_9623 Lnet/minecraft/class_2058$class_2060;field_9623:Lnet/minecraft/class_2073;
      named caughtItem Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;caughtItem:Lnet/minecraft/predicate/item/ItemPredicate;
  • Constructor Details

    • Conditions

      public Conditions(EntityPredicate.Extended player, ItemPredicate rod, EntityPredicate.Extended hookedEntity, ItemPredicate caughtItem)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbq$a;<init>(Lbm$b;Lbw;Lbm$b;Lbw;)V
      intermediary <init> Lnet/minecraft/class_2058$class_2060;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2073;Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2073;)V
      named <init> Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/item/ItemPredicate;Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/item/ItemPredicate;)V
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lbq$a;a(Lbw;Lbm;Lbw;)Lbq$a;
      intermediary method_8947 Lnet/minecraft/class_2058$class_2060;method_8947(Lnet/minecraft/class_2073;Lnet/minecraft/class_2048;Lnet/minecraft/class_2073;)Lnet/minecraft/class_2058$class_2060;
      named create Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;create(Lnet/minecraft/predicate/item/ItemPredicate;Lnet/minecraft/predicate/entity/EntityPredicate;Lnet/minecraft/predicate/item/ItemPredicate;)Lnet/minecraft/advancement/criterion/FishingRodHookedCriterion$Conditions;
    • matches

      public boolean matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots)
      Mappings:
      Namespace Name Mixin selector
      official a Lbq$a;a(Lbqp;Ldip;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 JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lam;a(Lcq;)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;