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 - dc$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 SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<KilledByArrowCriterion.Conditions> private final Optional<ItemPredicate> The field for thefiredFromWeaponrecord component.private final Optional<LootContextPredicate> The field for theplayerrecord component.private final NumberRange.IntRangeThe field for theuniqueEntityTypesrecord component.private final List<LootContextPredicate> The field for thevictimsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionConditions(Optional<LootContextPredicate> playerPredicate, List<LootContextPredicate> victims, NumberRange.IntRange uniqueEntityTypes, Optional<ItemPredicate> optional) 
- 
Method SummaryModifier and TypeMethodDescriptioncreateCrossbow(RegistryEntryLookup<Item> itemRegistry, EntityPredicate.Builder[] victims) createCrossbow(RegistryEntryLookup<Item> itemRegistry, NumberRange.IntRange uniqueEntityTypeCount) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefiredFromWeaponrecord component.final inthashCode()Returns a hash code value for this object.booleanmatches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount, @Nullable ItemStack weapon) player()Returns the value of theplayerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniqueEntityTypesrecord component.voidvalidate(LootContextPredicateValidator validator) victims()Returns the value of thevictimsrecord component.
- 
Field Details- 
playerThe field for theplayerrecord component.
- 
victimsThe field for thevictimsrecord component.
- 
uniqueEntityTypesThe field for theuniqueEntityTypesrecord component.
- 
firedFromWeaponThe field for thefiredFromWeaponrecord component.
- 
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- Ldc$a;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
Conditionspublic 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>- Ldc$a;<init>(Ljava/util/Optional;Ljava/util/List;Ldk$d;Ljava/util/Optional;)V
 
 
- 
- 
Method Details- 
createCrossbowpublic static AdvancementCriterion<KilledByArrowCriterion.Conditions> createCrossbow(RegistryEntryLookup<Item> itemRegistry, EntityPredicate.Builder[] victims) - 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- Ldc$a;a(Ljs;[Lbx$a;)Laq;
 
- 
createCrossbowpublic 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- Ldc$a;a(Ljs;Ldk$d;)Laq;
 
- 
matchespublic 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- Ldc$a;a(Ljava/util/Collection;ILcwq;)Z
 
- 
validate- Specified by:
- validatein interface- AbstractCriterion.Conditions
- Specified by:
- validatein 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- Lat;a(Lbj;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 withObjects::equals(Object,Object).
- 
playerReturns the value of theplayerrecord component.- Specified by:
- playerin interface- AbstractCriterion.Conditions
- Returns:
- the value of the playerrecord component
 
- 
victimsReturns the value of thevictimsrecord component.- Returns:
- the value of the victimsrecord component
 
- 
uniqueEntityTypesReturns the value of theuniqueEntityTypesrecord component.- Returns:
- the value of the uniqueEntityTypesrecord component
 
- 
firedFromWeaponReturns the value of thefiredFromWeaponrecord component.- Returns:
- the value of the firedFromWeaponrecord component
 
 
-