Record Class OnKilledCriterion.Conditions
java.lang.Object
java.lang.Record
net.minecraft.advancement.criterion.OnKilledCriterion.Conditions
- Record Components:
player
-entity
-killingBlow
-
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
OnKilledCriterion
public static record OnKilledCriterion.Conditions(Optional<LootContextPredicate> player, Optional<LootContextPredicate> entity, Optional<DamageSourcePredicate> killingBlow)
extends Record
implements AbstractCriterion.Conditions
- Mappings:
Namespace Name named net/minecraft/advancement/criterion/OnKilledCriterion$Conditions
intermediary net/minecraft/class_2080$class_2083
official da$a
named player
intermediary comp_2029
official b
named entity
intermediary comp_2068
official c
named killingBlow
intermediary comp_2069
official d
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<OnKilledCriterion.Conditions> private final Optional
<LootContextPredicate> The field for theentity
record component.private final Optional
<DamageSourcePredicate> The field for thekillingBlow
record component.private final Optional
<LootContextPredicate> The field for theplayer
record component. -
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> entity, Optional<DamageSourcePredicate> killingBlow) -
Method Summary
Modifier and TypeMethodDescriptioncreateEntityKilledPlayer
(Optional<EntityPredicate> entity, Optional<DamageSourcePredicate> killingBlow) createEntityKilledPlayer
(Optional<EntityPredicate> entity, DamageSourcePredicate.Builder damageSourcePredicateBuilder) createEntityKilledPlayer
(EntityPredicate.Builder killerEntityPredicateBuilder) createEntityKilledPlayer
(EntityPredicate.Builder killerEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow) createEntityKilledPlayer
(EntityPredicate.Builder killerEntityPredicateBuilder, DamageSourcePredicate.Builder damageSourcePredicateBuilder) createPlayerKilledEntity
(Optional<EntityPredicate> entity, Optional<DamageSourcePredicate> killingBlow) createPlayerKilledEntity
(Optional<EntityPredicate> entity, DamageSourcePredicate.Builder damageSourcePredicateBuilder) createPlayerKilledEntity
(EntityPredicate.Builder killedEntityPredicateBuilder) createPlayerKilledEntity
(EntityPredicate.Builder killedEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow) createPlayerKilledEntity
(EntityPredicate.Builder killedEntityPredicateBuilder, DamageSourcePredicate.Builder killingBlowBuilder) entity()
Returns the value of theentity
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thekillingBlow
record component.player()
Returns the value of theplayer
record component.boolean
test
(ServerPlayerEntity player, LootContext entity, DamageSource killingBlow) final String
toString()
Returns a string representation of this record class.void
validate
(LootContextPredicateValidator validator)
-
Field Details
-
player
The field for theplayer
record component. -
entity
The field for theentity
record component. -
killingBlow
The field for thekillingBlow
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_47304
Lnet/minecraft/class_2080$class_2083;field_47304:Lcom/mojang/serialization/Codec;
official a
Lda$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Conditions
public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> entity, Optional<DamageSourcePredicate> killingBlow) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_2080$class_2083;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
official <init>
Lda$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
createPlayerKilledEntity
public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(Optional<EntityPredicate> entity) - Mappings:
Namespace Name Mixin selector named createPlayerKilledEntity
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35248
Lnet/minecraft/class_2080$class_2083;method_35248(Ljava/util/Optional;)Lnet/minecraft/class_175;
official a
Lda$a;a(Ljava/util/Optional;)Lao;
-
createPlayerKilledEntity
public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(EntityPredicate.Builder killedEntityPredicateBuilder) - Mappings:
Namespace Name Mixin selector named createPlayerKilledEntity
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_8997
Lnet/minecraft/class_2080$class_2083;method_8997(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;
official a
Lda$a;a(Lbv$a;)Lao;
-
createPlayerKilledEntity
- Mappings:
Namespace Name Mixin selector named createPlayerKilledEntity
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity()Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_8999
Lnet/minecraft/class_2080$class_2083;method_8999()Lnet/minecraft/class_175;
official b
Lda$a;b()Lao;
-
createPlayerKilledEntity
public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(Optional<EntityPredicate> entity, Optional<DamageSourcePredicate> killingBlow) - Mappings:
Namespace Name Mixin selector named createPlayerKilledEntity
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35250
Lnet/minecraft/class_2080$class_2083;method_35250(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
official a
Lda$a;a(Ljava/util/Optional;Ljava/util/Optional;)Lao;
-
createPlayerKilledEntity
public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(EntityPredicate.Builder killedEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow) - Mappings:
Namespace Name Mixin selector named createPlayerKilledEntity
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35247
Lnet/minecraft/class_2080$class_2083;method_35247(Lnet/minecraft/class_2048$class_2049;Ljava/util/Optional;)Lnet/minecraft/class_175;
official a
Lda$a;a(Lbv$a;Ljava/util/Optional;)Lao;
-
createPlayerKilledEntity
public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(Optional<EntityPredicate> entity, DamageSourcePredicate.Builder damageSourcePredicateBuilder) - Mappings:
Namespace Name Mixin selector named createPlayerKilledEntity
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Ljava/util/Optional;Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35249
Lnet/minecraft/class_2080$class_2083;method_35249(Ljava/util/Optional;Lnet/minecraft/class_2022$class_2023;)Lnet/minecraft/class_175;
official a
Lda$a;a(Ljava/util/Optional;Lbk$a;)Lao;
-
createPlayerKilledEntity
public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(EntityPredicate.Builder killedEntityPredicateBuilder, DamageSourcePredicate.Builder killingBlowBuilder) - Mappings:
Namespace Name Mixin selector named createPlayerKilledEntity
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_9001
Lnet/minecraft/class_2080$class_2083;method_9001(Lnet/minecraft/class_2048$class_2049;Lnet/minecraft/class_2022$class_2023;)Lnet/minecraft/class_175;
official a
Lda$a;a(Lbv$a;Lbk$a;)Lao;
-
createKillMobNearSculkCatalyst
- Mappings:
Namespace Name Mixin selector named createKillMobNearSculkCatalyst
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createKillMobNearSculkCatalyst()Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_42671
Lnet/minecraft/class_2080$class_2083;method_42671()Lnet/minecraft/class_175;
official c
Lda$a;c()Lao;
-
createEntityKilledPlayer
public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(Optional<EntityPredicate> entity) - Mappings:
Namespace Name Mixin selector named createEntityKilledPlayer
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35254
Lnet/minecraft/class_2080$class_2083;method_35254(Ljava/util/Optional;)Lnet/minecraft/class_175;
official b
Lda$a;b(Ljava/util/Optional;)Lao;
-
createEntityKilledPlayer
public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(EntityPredicate.Builder killerEntityPredicateBuilder) - Mappings:
Namespace Name Mixin selector named createEntityKilledPlayer
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35251
Lnet/minecraft/class_2080$class_2083;method_35251(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;
official b
Lda$a;b(Lbv$a;)Lao;
-
createEntityKilledPlayer
- Mappings:
Namespace Name Mixin selector named createEntityKilledPlayer
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer()Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_8998
Lnet/minecraft/class_2080$class_2083;method_8998()Lnet/minecraft/class_175;
official d
Lda$a;d()Lao;
-
createEntityKilledPlayer
public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(Optional<EntityPredicate> entity, Optional<DamageSourcePredicate> killingBlow) - Mappings:
Namespace Name Mixin selector named createEntityKilledPlayer
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35256
Lnet/minecraft/class_2080$class_2083;method_35256(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
official b
Lda$a;b(Ljava/util/Optional;Ljava/util/Optional;)Lao;
-
createEntityKilledPlayer
public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(EntityPredicate.Builder killerEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow) - Mappings:
Namespace Name Mixin selector named createEntityKilledPlayer
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35253
Lnet/minecraft/class_2080$class_2083;method_35253(Lnet/minecraft/class_2048$class_2049;Ljava/util/Optional;)Lnet/minecraft/class_175;
official b
Lda$a;b(Lbv$a;Ljava/util/Optional;)Lao;
-
createEntityKilledPlayer
public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(Optional<EntityPredicate> entity, DamageSourcePredicate.Builder damageSourcePredicateBuilder) - Mappings:
Namespace Name Mixin selector named createEntityKilledPlayer
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Ljava/util/Optional;Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35255
Lnet/minecraft/class_2080$class_2083;method_35255(Ljava/util/Optional;Lnet/minecraft/class_2022$class_2023;)Lnet/minecraft/class_175;
official b
Lda$a;b(Ljava/util/Optional;Lbk$a;)Lao;
-
createEntityKilledPlayer
public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(EntityPredicate.Builder killerEntityPredicateBuilder, DamageSourcePredicate.Builder damageSourcePredicateBuilder) - Mappings:
Namespace Name Mixin selector named createEntityKilledPlayer
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
intermediary method_35252
Lnet/minecraft/class_2080$class_2083;method_35252(Lnet/minecraft/class_2048$class_2049;Lnet/minecraft/class_2022$class_2023;)Lnet/minecraft/class_175;
official b
Lda$a;b(Lbv$a;Lbk$a;)Lao;
-
test
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;test(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/loot/context/LootContext;Lnet/minecraft/entity/damage/DamageSource;)Z
intermediary method_9000
Lnet/minecraft/class_2080$class_2083;method_9000(Lnet/minecraft/class_3222;Lnet/minecraft/class_47;Lnet/minecraft/class_1282;)Z
official a
Lda$a;a(Laqv;Lerr;Lbrk;)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
Lar;a(Lbh;)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
-
entity
Returns the value of theentity
record component.- Returns:
- the value of the
entity
record component
-
killingBlow
Returns the value of thekillingBlow
record component.- Returns:
- the value of the
killingBlow
record component
-