Class PlayerHurtEntityTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.PlayerHurtEntityTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- PlayerHurtEntityTrigger
public static class PlayerHurtEntityTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private DamagePredicate
damage
private EntityPredicate.AndPredicate
entity
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i241190_1_, DamagePredicate p_i241190_2_, EntityPredicate.AndPredicate p_i241190_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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_)
static PlayerHurtEntityTrigger.Instance
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 Detail
-
damage
private final DamagePredicate damage
-
entity
private final EntityPredicate.AndPredicate entity
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i241190_1_, DamagePredicate p_i241190_2_, EntityPredicate.AndPredicate p_i241190_3_)
-
-
Method Detail
-
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
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-