Unicopia/src/main/java/com/minelittlepony/unicopia/magic/IHeldEffect.java

16 lines
453 B
Java
Raw Normal View History

package com.minelittlepony.unicopia.magic;
2019-02-20 16:24:26 +01:00
import com.minelittlepony.unicopia.entity.player.IPlayer;
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.
*/
2019-02-20 16:24:26 +01:00
public interface IHeldEffect extends IMagicEffect {
/**
* Called every tick when held in a player's inventory.
*
* @param source The entity we are currently attached to.
*/
2020-01-16 12:35:46 +01:00
void updateInHand(IPlayer caster, Affinity affinity);
2019-02-20 16:24:26 +01:00
}