2020-04-15 14:22:03 +02:00
|
|
|
package com.minelittlepony.unicopia.magic;
|
2019-02-20 16:24:26 +01:00
|
|
|
|
2020-04-15 18:12:00 +02:00
|
|
|
import com.minelittlepony.unicopia.entity.player.Pony;
|
2019-02-20 16:24:26 +01:00
|
|
|
|
2019-03-12 21:10:48 +01:00
|
|
|
/**
|
|
|
|
* Represents a passive spell that does something when held in the player's hand.
|
|
|
|
*/
|
2020-04-15 18:12:00 +02:00
|
|
|
public interface HeldMagicEffect extends MagicEffect {
|
2019-02-20 16:24:26 +01:00
|
|
|
/**
|
|
|
|
* Called every tick when held in a player's inventory.
|
|
|
|
*
|
|
|
|
* @param source The entity we are currently attached to.
|
|
|
|
*/
|
2020-04-15 18:12:00 +02:00
|
|
|
void updateInHand(Pony caster, Affinity affinity);
|
2019-02-20 16:24:26 +01:00
|
|
|
}
|