public class KilledTrigger extends AbstractCriterionTrigger<KilledTrigger.Instance>
Modifier and Type | Class and Description |
---|---|
static class |
KilledTrigger.Instance |
ICriterionTrigger.Listener<T extends ICriterionInstance>
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
id |
Constructor and Description |
---|
KilledTrigger(ResourceLocation id) |
Modifier and Type | Method and Description |
---|---|
KilledTrigger.Instance |
deserializeInstance(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context) |
ResourceLocation |
getId() |
void |
trigger(ServerPlayerEntity player,
Entity entity,
DamageSource source) |
addListener, func_227070_a_, func_227071_b_, removeAllListeners, removeListener
private final ResourceLocation id
public KilledTrigger(ResourceLocation id)
public ResourceLocation getId()
public KilledTrigger.Instance deserializeInstance(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
public void trigger(ServerPlayerEntity player, Entity entity, DamageSource source)