2019-02-20 16:24:26 +01:00
|
|
|
package com.minelittlepony.unicopia.spell;
|
|
|
|
|
|
|
|
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
|
|
|
|
*/
|
2019-03-12 21:12:46 +01:00
|
|
|
boolean updateOnPerson(ICaster<?> caster);
|
2019-02-20 16:24:26 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2019-03-12 21:12:46 +01:00
|
|
|
default void renderOnPerson(ICaster<?> source) {}
|
2019-02-20 16:24:26 +01:00
|
|
|
}
|