public static class EntityHurtPlayerTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private DamagePredicate |
damage |
Constructor and Description |
---|
Instance(DamagePredicate damage) |
Modifier and Type | Method and Description |
---|---|
static EntityHurtPlayerTrigger.Instance |
forDamage(DamagePredicate.Builder p_203921_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerPlayerEntity player,
DamageSource source,
float amountDealt,
float amountTaken,
boolean wasBlocked) |
getId, toString
private final DamagePredicate damage
public Instance(DamagePredicate damage)
public static EntityHurtPlayerTrigger.Instance forDamage(DamagePredicate.Builder p_203921_0_)
public boolean test(ServerPlayerEntity player, DamageSource source, float amountDealt, float amountTaken, boolean wasBlocked)
public com.google.gson.JsonElement serialize()