Class ShotCrossbowCriterion.Conditions

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

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

    • item

      private final ItemPredicate item
      Mappings:
      Namespace Name Mixin selector
      official a Lcu$a;a:Lca;
      intermediary field_9747 Lnet/minecraft/class_2123$class_2125;field_9747:Lnet/minecraft/class_2073;
      named item Lnet/minecraft/advancement/criterion/ShotCrossbowCriterion$Conditions;item:Lnet/minecraft/predicate/item/ItemPredicate;
  • Constructor Details

    • Conditions

      public Conditions(EntityPredicate.Extended player, ItemPredicate item)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcu$a;<init>(Lbo$b;Lca;)V
      intermediary <init> Lnet/minecraft/class_2123$class_2125;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2073;)V
      named <init> Lnet/minecraft/advancement/criterion/ShotCrossbowCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/item/ItemPredicate;)V
  • Method Details

    • create

      public static ShotCrossbowCriterion.Conditions create(ItemPredicate itemPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lcu$a;a(Lca;)Lcu$a;
      intermediary method_35323 Lnet/minecraft/class_2123$class_2125;method_35323(Lnet/minecraft/class_2073;)Lnet/minecraft/class_2123$class_2125;
      named create Lnet/minecraft/advancement/criterion/ShotCrossbowCriterion$Conditions;create(Lnet/minecraft/predicate/item/ItemPredicate;)Lnet/minecraft/advancement/criterion/ShotCrossbowCriterion$Conditions;
    • create

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

      public boolean matches(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lcu$a;a(Lcaa;)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(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lan;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;