Class ShotCrossbowCriterion.Conditions

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

public static class ShotCrossbowCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official cv$a
intermediary net/minecraft/class_2123$class_2125
named net/minecraft/advancement/criterion/ShotCrossbowCriterion$Conditions
  • Field Details

    • item

      private final Optional<ItemPredicate> item
      Mappings:
      Namespace Name Mixin selector
      official a Lcv$a;a:Ljava/util/Optional;
      intermediary field_9747 Lnet/minecraft/class_2123$class_2125;field_9747:Ljava/util/Optional;
      named item Lnet/minecraft/advancement/criterion/ShotCrossbowCriterion$Conditions;item:Ljava/util/Optional;
  • Constructor Details

    • Conditions

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

    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lcv$a;a(Ljava/util/Optional;)Lam;
      intermediary method_35323 Lnet/minecraft/class_2123$class_2125;method_35323(Ljava/util/Optional;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/ShotCrossbowCriterion$Conditions;create(Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lcv$a;a(Lcpu;)Lam;
      intermediary method_9120 Lnet/minecraft/class_2123$class_2125;method_9120(Lnet/minecraft/class_1935;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/ShotCrossbowCriterion$Conditions;create(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/advancement/AdvancementCriterion;
    • matches

      public boolean matches(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lcv$a;a(Lcjf;)Z
      intermediary method_9121 Lnet/minecraft/class_2123$class_2125;method_9121(Lnet/minecraft/class_1799;)Z
      named matches Lnet/minecraft/advancement/criterion/ShotCrossbowCriterion$Conditions;matches(Lnet/minecraft/item/ItemStack;)Z
    • toJson

      public 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;