A lot of GOOD API DOCUMENTATION

This commit is contained in:
Kam committed 2026-03-09 16:20:07 -04:00
1 parent a6c55ca331
commit 319e774518
131 files changed
+3363 -175

No files matched your search

@@ -4,26 +4,36 @@ import noppes.npcs.api.IBlock;
import noppes.npcs.api.entity.IEntity;
import noppes.npcs.api.entity.IProjectile;
/**
* Events fired during NPC projectile lifecycle and impacts.
*/
public interface IProjectileEvent extends ICustomNPCsEvent {
/** @return the projectile entity. */
public IProjectile getProjectile();
/** @return the entity that launched this projectile. */
public IEntity getSource();
/**
* Fired each tick while the projectile exists.
* @hookName projectileTick
*/
interface UpdateEvent extends IProjectileEvent {
}
/**
* Fired when the projectile hits something.
* @hookName projectileImpact
*/
interface ImpactEvent extends IProjectileEvent {
/** @return the impact type. */
public int getType();
/** @return the entity hit, or null if a block was hit. */
public IEntity getEntity();
/** @return the block hit, or null if an entity was hit. */
public IBlock getBlock();
}