public static class KilledTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private EntityPredicate |
entity |
private DamageSourcePredicate |
killingBlow |
Constructor and Description |
---|
Instance(ResourceLocation criterionIn,
EntityPredicate entity,
DamageSourcePredicate killingBlow) |
Modifier and Type | Method and Description |
---|---|
static KilledTrigger.Instance |
entityKilledPlayer() |
static KilledTrigger.Instance |
playerKilledEntity() |
static KilledTrigger.Instance |
playerKilledEntity(EntityPredicate.Builder p_203928_0_) |
static KilledTrigger.Instance |
playerKilledEntity(EntityPredicate.Builder p_203929_0_,
DamageSourcePredicate.Builder p_203929_1_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerPlayerEntity player,
Entity entity,
DamageSource source) |
getId, toString
private final EntityPredicate entity
private final DamageSourcePredicate killingBlow
public Instance(ResourceLocation criterionIn, EntityPredicate entity, DamageSourcePredicate killingBlow)
public static KilledTrigger.Instance playerKilledEntity(EntityPredicate.Builder p_203928_0_)
public static KilledTrigger.Instance playerKilledEntity()
public static KilledTrigger.Instance playerKilledEntity(EntityPredicate.Builder p_203929_0_, DamageSourcePredicate.Builder p_203929_1_)
public static KilledTrigger.Instance entityKilledPlayer()
public boolean test(ServerPlayerEntity player, Entity entity, DamageSource source)
public com.google.gson.JsonElement serialize()