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$Conditionsintermediary net/minecraft/class_2076$class_2078official cp$anamed playerintermediary comp_2029official bnamed victimsintermediary comp_2066official cnamed uniqueEntityTypesintermediary comp_2067official dnamed firedFromWeaponintermediary comp_3212official e
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionConditions(Optional<LootContextPredicate> playerPredicate, List<LootContextPredicate> victims, NumberRange.IntRange uniqueEntityTypes, Optional<ItemPredicate> optional) -
Method Summary
Modifier 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
-
player
The field for theplayerrecord component. -
victims
The field for thevictimsrecord component. -
uniqueEntityTypes
The field for theuniqueEntityTypesrecord component. -
firedFromWeapon
The field for thefiredFromWeaponrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;intermediary field_47268Lnet/minecraft/class_2076$class_2078;field_47268:Lcom/mojang/serialization/Codec;official aLcp$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;)Vintermediary <init>Lnet/minecraft/class_2076$class_2078;<init>(Ljava/util/Optional;Ljava/util/List;Lnet/minecraft/class_2096$class_2100;Ljava/util/Optional;)Vofficial <init>Lcp$a;<init>(Ljava/util/Optional;Ljava/util/List;Lcx$d;Ljava/util/Optional;)V
-
-
Method Details
-
createCrossbow
public static AdvancementCriterion<KilledByArrowCriterion.Conditions> createCrossbow(RegistryEntryLookup<Item> itemRegistry, EntityPredicate.Builder[] victims) - Mappings:
Namespace Name Mixin selector named createCrossbowLnet/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions;createCrossbow(Lnet/minecraft/registry/RegistryEntryLookup;[Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;intermediary method_8986Lnet/minecraft/class_2076$class_2078;method_8986(Lnet/minecraft/class_7871;[Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;official aLcp$a;a(Ljh;[Lbz$a;)Lar;
-
createCrossbow
public static AdvancementCriterion<KilledByArrowCriterion.Conditions> createCrossbow(RegistryEntryLookup<Item> itemRegistry, NumberRange.IntRange uniqueEntityTypeCount) - Mappings:
Namespace Name Mixin selector named createCrossbowLnet/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions;createCrossbow(Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/advancement/AdvancementCriterion;intermediary method_8987Lnet/minecraft/class_2076$class_2078;method_8987(Lnet/minecraft/class_7871;Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_175;official aLcp$a;a(Ljh;Lcx$d;)Lar;
-
matches
public boolean matches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount, @Nullable @Nullable ItemStack weapon) - Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/advancement/criterion/KilledByArrowCriterion$Conditions;matches(Ljava/util/Collection;ILnet/minecraft/item/ItemStack;)Zintermediary method_8988Lnet/minecraft/class_2076$class_2078;method_8988(Ljava/util/Collection;ILnet/minecraft/class_1799;)Zofficial aLcp$a;a(Ljava/util/Collection;ILdak;)Z
-
validate
- Specified by:
validatein interfaceAbstractCriterion.Conditions- Specified by:
validatein interfaceCriterionConditions- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/advancement/criterion/CriterionConditions;validate(Lnet/minecraft/predicate/entity/LootContextPredicateValidator;)Vintermediary method_54938Lnet/minecraft/class_184;method_54938(Lnet/minecraft/class_8944;)Vofficial aLau;a(Lbk;)V
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
player
Returns the value of theplayerrecord component.- Specified by:
playerin interfaceAbstractCriterion.Conditions- Returns:
- the value of the
playerrecord component
-
victims
Returns the value of thevictimsrecord component.- Returns:
- the value of the
victimsrecord component
-
uniqueEntityTypes
Returns the value of theuniqueEntityTypesrecord component.- Returns:
- the value of the
uniqueEntityTypesrecord component
-
firedFromWeapon
Returns the value of thefiredFromWeaponrecord component.- Returns:
- the value of the
firedFromWeaponrecord component
-