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 Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<KilledByArrowCriterion.Conditions> private final Optional
<ItemPredicate> The field for thefiredFromWeapon
record component.private final Optional
<LootContextPredicate> The field for theplayer
record component.private final NumberRange.IntRange
The field for theuniqueEntityTypes
record component.private final List
<LootContextPredicate> The field for thevictims
record component. -
Constructor Summary
ConstructorDescriptionConditions
(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 boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefiredFromWeapon
record component.final int
hashCode()
Returns a hash code value for this object.boolean
matches
(Collection<LootContext> victimContexts, int uniqueEntityTypeCount, @Nullable ItemStack weapon) player()
Returns the value of theplayer
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuniqueEntityTypes
record component.void
validate
(LootContextPredicateValidator validator) victims()
Returns the value of thevictims
record component.
-
Field Details
-
player
The field for theplayer
record component. -
victims
The field for thevictims
record component. -
uniqueEntityTypes
The field for theuniqueEntityTypes
record component. -
firedFromWeapon
The field for thefiredFromWeapon
record 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
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
public 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
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
- Specified by:
validate
in interfaceAbstractCriterion.Conditions
- Specified by:
validate
in interfaceCriterionConditions
- 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
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 theplayer
record component.- Specified by:
player
in interfaceAbstractCriterion.Conditions
- Returns:
- the value of the
player
record component
-
victims
Returns the value of thevictims
record component.- Returns:
- the value of the
victims
record component
-
uniqueEntityTypes
Returns the value of theuniqueEntityTypes
record component.- Returns:
- the value of the
uniqueEntityTypes
record component
-
firedFromWeapon
Returns the value of thefiredFromWeapon
record component.- Returns:
- the value of the
firedFromWeapon
record component
-