Class PlayerHurtEntityCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.PlayerHurtEntityCriterion.Conditions
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
PlayerHurtEntityCriterion
- Mappings:
Namespace Name official cp$a
intermediary net/minecraft/class_2115$class_2117
named net/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<DamagePredicate>
private final Optional<LootContextPredicate>
-
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<DamagePredicate> damage, Optional<LootContextPredicate> entity) -
Method Summary
Modifier and TypeMethodDescriptioncreate()
create
(Optional<DamagePredicate> damage, Optional<EntityPredicate> entity) create
(Optional<EntityPredicate> entity) create
(DamagePredicate.Builder damage) create
(DamagePredicate.Builder damage, Optional<EntityPredicate> entity) boolean
matches
(ServerPlayerEntity player, LootContext entity, DamageSource damageSource, float dealt, float taken, boolean blocked) method_35296
(Optional<DamagePredicate> optional) toJson()
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getPlayerPredicate
-
Field Details
-
damage
- Mappings:
Namespace Name Mixin selector official a
Lcp$a;a:Ljava/util/Optional;
intermediary field_9736
Lnet/minecraft/class_2115$class_2117;field_9736:Ljava/util/Optional;
named damage
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;damage:Ljava/util/Optional;
-
entity
- Mappings:
Namespace Name Mixin selector official b
Lcp$a;b:Ljava/util/Optional;
intermediary field_9737
Lnet/minecraft/class_2115$class_2117;field_9737:Ljava/util/Optional;
named entity
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;entity:Ljava/util/Optional;
-
-
Constructor Details
-
Conditions
public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<DamagePredicate> damage, Optional<LootContextPredicate> entity) - Mappings:
Namespace Name Mixin selector official <init>
Lcp$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_2115$class_2117;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official c
Lcp$a;c()Lam;
intermediary method_35298
Lnet/minecraft/class_2115$class_2117;method_35298()Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create()Lnet/minecraft/advancement/AdvancementCriterion;
-
method_35296
public static AdvancementCriterion<PlayerHurtEntityCriterion.Conditions> method_35296(Optional<DamagePredicate> optional) - Mappings:
Namespace Name Mixin selector official a
Lcp$a;a(Ljava/util/Optional;)Lam;
intermediary method_35296
Lnet/minecraft/class_2115$class_2117;method_35296(Ljava/util/Optional;)Lnet/minecraft/class_175;
named method_35296
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;method_35296(Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
-
create
public static AdvancementCriterion<PlayerHurtEntityCriterion.Conditions> create(DamagePredicate.Builder damage) - Mappings:
Namespace Name Mixin selector official a
Lcp$a;a(Lbe$a;)Lam;
intermediary method_35297
Lnet/minecraft/class_2115$class_2117;method_35297(Lnet/minecraft/class_2019$class_2020;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create(Lnet/minecraft/predicate/DamagePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
-
create
public static AdvancementCriterion<PlayerHurtEntityCriterion.Conditions> create(Optional<EntityPredicate> entity) - Mappings:
Namespace Name Mixin selector official b
Lcp$a;b(Ljava/util/Optional;)Lam;
intermediary method_35295
Lnet/minecraft/class_2115$class_2117;method_35295(Ljava/util/Optional;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create(Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
-
create
public static AdvancementCriterion<PlayerHurtEntityCriterion.Conditions> create(Optional<DamagePredicate> damage, Optional<EntityPredicate> entity) - Mappings:
Namespace Name Mixin selector official a
Lcp$a;a(Ljava/util/Optional;Ljava/util/Optional;)Lam;
intermediary method_35294
Lnet/minecraft/class_2115$class_2117;method_35294(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
-
create
public static AdvancementCriterion<PlayerHurtEntityCriterion.Conditions> create(DamagePredicate.Builder damage, Optional<EntityPredicate> entity) - Mappings:
Namespace Name Mixin selector official a
Lcp$a;a(Lbe$a;Ljava/util/Optional;)Lam;
intermediary method_9103
Lnet/minecraft/class_2115$class_2117;method_9103(Lnet/minecraft/class_2019$class_2020;Ljava/util/Optional;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create(Lnet/minecraft/predicate/DamagePredicate$Builder;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
-
matches
public boolean matches(ServerPlayerEntity player, LootContext entity, DamageSource damageSource, float dealt, float taken, boolean blocked) - Mappings:
Namespace Name Mixin selector official a
Lcp$a;a(Lakr;Lecq;Lbho;FFZ)Z
intermediary method_9104
Lnet/minecraft/class_2115$class_2117;method_9104(Lnet/minecraft/class_3222;Lnet/minecraft/class_47;Lnet/minecraft/class_1282;FFZ)Z
named matches
Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;matches(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/loot/context/LootContext;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;
-