public static class PlayerHurtEntityTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private DamagePredicate |
damage |
private EntityPredicate |
entity |
Constructor and Description |
---|
Instance(DamagePredicate damage,
EntityPredicate entity) |
Modifier and Type | Method and Description |
---|---|
static PlayerHurtEntityTrigger.Instance |
forDamage(DamagePredicate.Builder p_203936_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerPlayerEntity player,
Entity entity,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
getId, toString
private final DamagePredicate damage
private final EntityPredicate entity
public Instance(DamagePredicate damage, EntityPredicate entity)
public static PlayerHurtEntityTrigger.Instance forDamage(DamagePredicate.Builder p_203936_0_)
public boolean test(ServerPlayerEntity player, Entity entity, DamageSource source, float dealt, float taken, boolean blocked)
public com.google.gson.JsonElement serialize()