mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-28 23:48:00 +01:00
22 lines
638 B
Java
22 lines
638 B
Java
|
package com.minelittlepony.unicopia.spell;
|
||
|
|
||
|
import com.minelittlepony.unicopia.player.IPlayer;
|
||
|
|
||
|
public interface IAttachedEffect extends IMagicEffect {
|
||
|
/**
|
||
|
* Called every tick when attached to a player.
|
||
|
*
|
||
|
* @param source The entity we are currently attached to.
|
||
|
* @return true to keep alive
|
||
|
*/
|
||
|
boolean updateOnPerson(IPlayer caster);
|
||
|
|
||
|
/**
|
||
|
* Called every tick when attached to a player. Used to apply particle effects.
|
||
|
* Is only called on the client side.
|
||
|
*
|
||
|
* @param source The entity we are currently attached to.
|
||
|
*/
|
||
|
default void renderOnPerson(IPlayer source) {}
|
||
|
}
|