Class EntityHurtPlayerCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.EntityHurtPlayerCriterion.Conditions
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
EntityHurtPlayerCriterion
- Mappings:
Namespace Name official bp$a
intermediary net/minecraft/class_2044$class_2046
named net/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<DamagePredicate> damage) -
Method Summary
Modifier and TypeMethodDescriptioncreate()
create
(DamagePredicate predicate) create
(DamagePredicate.Builder damageBuilder) boolean
matches
(ServerPlayerEntity player, DamageSource damageSource, float dealt, float taken, boolean blocked) toJson()
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getPlayerPredicate
-
Field Details
-
damage
- Mappings:
Namespace Name Mixin selector official a
Lbp$a;a:Ljava/util/Optional;
intermediary field_9593
Lnet/minecraft/class_2044$class_2046;field_9593:Ljava/util/Optional;
named damage
Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;damage:Ljava/util/Optional;
-
-
Constructor Details
-
Conditions
- Mappings:
Namespace Name Mixin selector official <init>
Lbp$a;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_2044$class_2046;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official c
Lbp$a;c()Lam;
intermediary method_35210
Lnet/minecraft/class_2044$class_2046;method_35210()Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;create()Lnet/minecraft/advancement/AdvancementCriterion;
-
create
public static AdvancementCriterion<EntityHurtPlayerCriterion.Conditions> create(DamagePredicate predicate) - Mappings:
Namespace Name Mixin selector official a
Lbp$a;a(Lbe;)Lam;
intermediary method_35209
Lnet/minecraft/class_2044$class_2046;method_35209(Lnet/minecraft/class_2019;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;create(Lnet/minecraft/predicate/DamagePredicate;)Lnet/minecraft/advancement/AdvancementCriterion;
-
create
public static AdvancementCriterion<EntityHurtPlayerCriterion.Conditions> create(DamagePredicate.Builder damageBuilder) - Mappings:
Namespace Name Mixin selector official a
Lbp$a;a(Lbe$a;)Lam;
intermediary method_8908
Lnet/minecraft/class_2044$class_2046;method_8908(Lnet/minecraft/class_2019$class_2020;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;create(Lnet/minecraft/predicate/DamagePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
-
matches
public boolean matches(ServerPlayerEntity player, DamageSource damageSource, float dealt, float taken, boolean blocked) - Mappings:
Namespace Name Mixin selector official a
Lbp$a;a(Lakr;Lbho;FFZ)Z
intermediary method_8907
Lnet/minecraft/class_2044$class_2046;method_8907(Lnet/minecraft/class_3222;Lnet/minecraft/class_1282;FFZ)Z
named matches
Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion$Conditions;matches(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/damage/DamageSource;FFZ)Z
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- Mappings:
Namespace Name Mixin selector official a
Lap;a()Lcom/google/gson/JsonObject;
intermediary method_807
Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
named toJson
Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;
-