mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 13:14:44 +00:00
39 lines
829 B
Java
39 lines
829 B
Java
package noppes.npcs.api.entity;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
/**
|
|
* A flat spinning disc projectile with optional boomerang behavior.
|
|
* <p>
|
|
* Discs can be oriented vertically or horizontally, and can return to their owner
|
|
* like a boomerang after a configurable delay.
|
|
*/
|
|
public interface IEnergyDisc<T extends Entity> extends IEnergyProjectile<T> {
|
|
|
|
/**
|
|
* Radius of the disc.
|
|
* @return the disc radius in blocks
|
|
*/
|
|
float getDiscRadius();
|
|
|
|
void setDiscRadius(float radius);
|
|
|
|
float getDiscThickness();
|
|
|
|
void setDiscThickness(float thickness);
|
|
|
|
boolean isVertical();
|
|
|
|
void setVertical(boolean vertical);
|
|
|
|
boolean isBoomerang();
|
|
|
|
void setBoomerang(boolean boomerang);
|
|
|
|
int getBoomerangDelay();
|
|
|
|
void setBoomerangDelay(int ticks);
|
|
|
|
boolean isReturning();
|
|
}
|