Class KilledByCrossbowCriterion.Conditions

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

public static class KilledByCrossbowCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official cb$a
intermediary net/minecraft/class_2076$class_2078
named net/minecraft/advancement/criterion/KilledByCrossbowCriterion$Conditions
  • Field Details

    • victims

      private final LootContextPredicate[] victims
      Mappings:
      Namespace Name Mixin selector
      official a Lcb$a;a:[Lba;
      intermediary field_9660 Lnet/minecraft/class_2076$class_2078;field_9660:[Lnet/minecraft/class_5258;
      named victims Lnet/minecraft/advancement/criterion/KilledByCrossbowCriterion$Conditions;victims:[Lnet/minecraft/predicate/entity/LootContextPredicate;
    • uniqueEntityTypes

      private final NumberRange.IntRange uniqueEntityTypes
      Mappings:
      Namespace Name Mixin selector
      official b Lcb$a;b:Lcj$d;
      intermediary field_9659 Lnet/minecraft/class_2076$class_2078;field_9659:Lnet/minecraft/class_2096$class_2100;
      named uniqueEntityTypes Lnet/minecraft/advancement/criterion/KilledByCrossbowCriterion$Conditions;uniqueEntityTypes:Lnet/minecraft/predicate/NumberRange$IntRange;
  • Constructor Details

    • Conditions

      public Conditions(LootContextPredicate player, LootContextPredicate[] victims, NumberRange.IntRange uniqueEntityTypes)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcb$a;<init>(Lba;[Lba;Lcj$d;)V
      intermediary <init> Lnet/minecraft/class_2076$class_2078;<init>(Lnet/minecraft/class_5258;[Lnet/minecraft/class_5258;Lnet/minecraft/class_2096$class_2100;)V
      named <init> Lnet/minecraft/advancement/criterion/KilledByCrossbowCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/LootContextPredicate;[Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/predicate/NumberRange$IntRange;)V
  • Method Details

    • create

      public static KilledByCrossbowCriterion.Conditions create(EntityPredicate.Builder[] victimPredicates)
      Mappings:
      Namespace Name Mixin selector
      official a Lcb$a;a([Lbo$a;)Lcb$a;
      intermediary method_8986 Lnet/minecraft/class_2076$class_2078;method_8986([Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_2076$class_2078;
      named create Lnet/minecraft/advancement/criterion/KilledByCrossbowCriterion$Conditions;create([Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/criterion/KilledByCrossbowCriterion$Conditions;
    • create

      public static KilledByCrossbowCriterion.Conditions create(NumberRange.IntRange uniqueEntityTypes)
      Mappings:
      Namespace Name Mixin selector
      official a Lcb$a;a(Lcj$d;)Lcb$a;
      intermediary method_8987 Lnet/minecraft/class_2076$class_2078;method_8987(Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_2076$class_2078;
      named create Lnet/minecraft/advancement/criterion/KilledByCrossbowCriterion$Conditions;create(Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/advancement/criterion/KilledByCrossbowCriterion$Conditions;
    • matches

      public boolean matches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount)
      Mappings:
      Namespace Name Mixin selector
      official a Lcb$a;a(Ljava/util/Collection;I)Z
      intermediary method_8988 Lnet/minecraft/class_2076$class_2078;method_8988(Ljava/util/Collection;I)Z
      named matches Lnet/minecraft/advancement/criterion/KilledByCrossbowCriterion$Conditions;matches(Ljava/util/Collection;I)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(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;