Record Class KilledByArrowCriterion.Conditions

java.lang.Object
java.lang.Record
net.minecraft.advancement.criterion.KilledByArrowCriterion.Conditions
Record Components:
player -
victims -
uniqueEntityTypes -
firedFromWeapon -
All Implemented Interfaces:
AbstractCriterion.Conditions, CriterionConditions
Enclosing class:
KilledByArrowCriterion

public static record KilledByArrowCriterion.Conditions(Optional<LootContextPredicate> player, List<LootContextPredicate> victims, NumberRange.IntRange uniqueEntityTypes, Optional<ItemPredicate> firedFromWeapon) extends Record implements AbstractCriterion.Conditions
Mappings:
Namespace Name
named net/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions
intermediary net/minecraft/class_2076$class_2078
official db$a
named player
intermediary comp_2029
official b
named victims
intermediary comp_2066
official c
named uniqueEntityTypes
intermediary comp_2067
official d
named firedFromWeapon
intermediary comp_3212
official e
  • Field Details

    • player

      private final Optional<LootContextPredicate> player
      The field for the player record component.
    • victims

      private final List<LootContextPredicate> victims
      The field for the victims record component.
    • uniqueEntityTypes

      private final NumberRange.IntRange uniqueEntityTypes
      The field for the uniqueEntityTypes record component.
    • firedFromWeapon

      private final Optional<ItemPredicate> firedFromWeapon
      The field for the firedFromWeapon record component.
    • CODEC

      public static final com.mojang.serialization.Codec<KilledByArrowCriterion.Conditions> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_47268 Lnet/minecraft/class_2076$class_2078;field_47268:Lcom/mojang/serialization/Codec;
      official a Ldb$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, List<LootContextPredicate> victims, NumberRange.IntRange uniqueEntityTypes, Optional<ItemPredicate> optional)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/List;Lnet/minecraft/predicate/NumberRange$IntRange;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_2076$class_2078;<init>(Ljava/util/Optional;Ljava/util/List;Lnet/minecraft/class_2096$class_2100;Ljava/util/Optional;)V
      official <init> Ldb$a;<init>(Ljava/util/Optional;Ljava/util/List;Ldj$d;Ljava/util/Optional;)V
  • Method Details

    • createCrossbow

      Mappings:
      Namespace Name Mixin selector
      named createCrossbow Lnet/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions;createCrossbow(Lnet/minecraft/registry/RegistryEntryLookup;[Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
      intermediary method_8986 Lnet/minecraft/class_2076$class_2078;method_8986(Lnet/minecraft/class_7871;[Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;
      official a Ldb$a;a(Ljr;[Lbw$a;)Lap;
    • createCrossbow

      public static AdvancementCriterion<KilledByArrowCriterion.Conditions> createCrossbow(RegistryEntryLookup<Item> itemRegistry, NumberRange.IntRange uniqueEntityTypeCount)
      Mappings:
      Namespace Name Mixin selector
      named createCrossbow Lnet/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions;createCrossbow(Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/advancement/AdvancementCriterion;
      intermediary method_8987 Lnet/minecraft/class_2076$class_2078;method_8987(Lnet/minecraft/class_7871;Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_175;
      official a Ldb$a;a(Ljr;Ldj$d;)Lap;
    • matches

      public boolean matches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount, @Nullable @Nullable ItemStack weapon)
      Mappings:
      Namespace Name Mixin selector
      named matches Lnet/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions;matches(Ljava/util/Collection;ILnet/minecraft/item/ItemStack;)Z
      intermediary method_8988 Lnet/minecraft/class_2076$class_2078;method_8988(Ljava/util/Collection;ILnet/minecraft/class_1799;)Z
      official a Ldb$a;a(Ljava/util/Collection;ILcxo;)Z
    • validate

      public void validate(LootContextPredicateValidator validator)
      Specified by:
      validate in interface AbstractCriterion.Conditions
      Specified by:
      validate in interface CriterionConditions
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/advancement/criterion/CriterionConditions;validate(Lnet/minecraft/predicate/entity/LootContextPredicateValidator;)V
      intermediary method_54938 Lnet/minecraft/class_184;method_54938(Lnet/minecraft/class_8944;)V
      official a Las;a(Lbi;)V
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • player

      public Optional<LootContextPredicate> player()
      Returns the value of the player record component.
      Specified by:
      player in interface AbstractCriterion.Conditions
      Returns:
      the value of the player record component
    • victims

      public List<LootContextPredicate> victims()
      Returns the value of the victims record component.
      Returns:
      the value of the victims record component
    • uniqueEntityTypes

      public NumberRange.IntRange uniqueEntityTypes()
      Returns the value of the uniqueEntityTypes record component.
      Returns:
      the value of the uniqueEntityTypes record component
    • firedFromWeapon

      public Optional<ItemPredicate> firedFromWeapon()
      Returns the value of the firedFromWeapon record component.
      Returns:
      the value of the firedFromWeapon record component