public class OnKilledCriterion extends AbstractCriterion<OnKilledCriterion.Conditions>
Modifier and Type | Class and Description |
---|---|
static class |
OnKilledCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private Identifier |
id |
Constructor and Description |
---|
OnKilledCriterion(Identifier id) |
Modifier and Type | Method and Description |
---|---|
OnKilledCriterion.Conditions |
conditionsFromJson(JsonObject jsonObject,
EntityPredicate.Extended extended,
AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) |
Identifier |
getId() |
void |
trigger(ServerPlayerEntity player,
Entity entity,
DamageSource killingDamage) |
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, test
private final Identifier id
public OnKilledCriterion(Identifier id)
public Identifier getId()
public OnKilledCriterion.Conditions conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
conditionsFromJson
in class AbstractCriterion<OnKilledCriterion.Conditions>
public void trigger(ServerPlayerEntity player, Entity entity, DamageSource killingDamage)