package com.cardshifter.modapi.actions; import com.cardshifter.modapi.base.Entity; import com.cardshifter.modapi.events.IEvent; public class ActionPerformEvent implements IEvent { private final Entity entity; private final ECSAction action; private final Entity performer; public ActionPerformEvent(Entity owner, ECSAction ecsAction, Entity performer) { this.entity = owner; this.action = ecsAction; this.performer = performer; } public ECSAction getAction() { return action; } /** * @return The entity that this Action is attached to. Is the same as <code>getAction().getEntity()</code> */ public Entity getEntity() { return entity; } /** * Get the entity that activated this Action (normally a Player) * @return The entity that activated the action */ public Entity getPerformer() { return performer; } }