Class PlayerHurtEntityTrigger.Instance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
net.minecraft.advancements.criterion.PlayerHurtEntityTrigger.Instance
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- PlayerHurtEntityTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DamagePredicate
private final EntityPredicate.AndPredicate
-
Constructor Summary
ConstructorDescriptionInstance
(EntityPredicate.AndPredicate p_i241190_1_, DamagePredicate p_i241190_2_, EntityPredicate.AndPredicate p_i241190_3_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(ServerPlayerEntity p_235609_1_, LootContext p_235609_2_, DamageSource p_235609_3_, float p_235609_4_, float p_235609_5_, boolean p_235609_6_) playerHurtEntity
(DamagePredicate.Builder p_203936_0_) com.google.gson.JsonObject
serializeToJson
(ConditionArraySerializer p_230240_1_) Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
damage
-
entity
-
-
Constructor Details
-
Instance
public Instance(EntityPredicate.AndPredicate p_i241190_1_, DamagePredicate p_i241190_2_, EntityPredicate.AndPredicate p_i241190_3_)
-
-
Method Details
-
playerHurtEntity
public static PlayerHurtEntityTrigger.Instance playerHurtEntity(DamagePredicate.Builder p_203936_0_) -
matches
public boolean matches(ServerPlayerEntity p_235609_1_, LootContext p_235609_2_, DamageSource p_235609_3_, float p_235609_4_, float p_235609_5_, boolean p_235609_6_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-