mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 17:54:44 +00:00
20 lines
642 B
Java
20 lines
642 B
Java
package noppes.npcs.api.ability.data;
|
|
|
|
/**
|
|
* Lifespan properties for energy ability projectiles.
|
|
* Controls how far and how long a projectile can travel before expiring.
|
|
*/
|
|
public interface IEnergyLifespanData {
|
|
/** @return Maximum travel distance in blocks before the projectile expires. */
|
|
float getMaxDistance();
|
|
|
|
/** @param maxDistance Maximum travel distance in blocks. */
|
|
void setMaxDistance(float maxDistance);
|
|
|
|
/** @return Maximum lifetime in ticks before the projectile expires. */
|
|
int getMaxLifetime();
|
|
|
|
/** @param maxLifetime Maximum lifetime in ticks. */
|
|
void setMaxLifetime(int maxLifetime);
|
|
}
|