public class PlayerHurtEntityCriterion extends AbstractCriterion<PlayerHurtEntityCriterion.Conditions>
| Modifier and Type | Class and Description |
|---|---|
static class |
PlayerHurtEntityCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>| Modifier and Type | Field and Description |
|---|---|
private static Identifier |
ID |
| Constructor and Description |
|---|
PlayerHurtEntityCriterion() |
| Modifier and Type | Method and Description |
|---|---|
Identifier |
getId() |
PlayerHurtEntityCriterion.Conditions |
method_27854(JsonObject jsonObject,
EntityPredicate.class_5258 class_5258,
class_5257 class_5257) |
void |
trigger(ServerPlayerEntity serverPlayerEntity,
Entity entity,
DamageSource damageSource,
float dealt,
float taken,
boolean blocked) |
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, grant, testprivate static final Identifier ID
public Identifier getId()
public PlayerHurtEntityCriterion.Conditions method_27854(JsonObject jsonObject, EntityPredicate.class_5258 class_5258, class_5257 class_5257)
method_27854 in class AbstractCriterion<PlayerHurtEntityCriterion.Conditions>public void trigger(ServerPlayerEntity serverPlayerEntity, Entity entity, DamageSource damageSource, float dealt, float taken, boolean blocked)