Bunch of API Additions

- ITintData
- IHitboxData
- Sound Management APIS
- Tactical Chance
- Swimming
- Fire Reactions
- Sprint
- Door Interact
- Walking Range
This commit is contained in:
Kam committed 2026-03-01 04:27:11 -05:00
1 parent 17e8833604
commit f969b9f540
3 files changed
+676

No files matched your search

@@ -0,0 +1,54 @@
package noppes.npcs.api.entity.data;
/**
* Provides configuration data for an NPC's custom hitbox dimensions.
* <p>
* When enabled, allows independent scaling of the NPC's collision box
* width and height beyond the default model-based sizing.
*/
public interface IHitboxData {
/**
* Returns whether the custom hitbox is enabled.
*
* @return true if the custom hitbox is enabled, false otherwise.
*/
boolean isHitboxEnabled();
/**
* Sets whether the custom hitbox is enabled.
*
* @param enabled true to enable, false to disable.
*/
void setHitboxEnabled(boolean enabled);
/**
* Returns the width scale factor for the hitbox.
*
* @return the width scale factor (1.0 = default).
*/
float getWidthScale();
/**
* Sets the width scale factor for the hitbox.
* Clamped to the server-configured maximum.
*
* @param widthScale the width scale factor.
*/
void setWidthScale(float widthScale);
/**
* Returns the height scale factor for the hitbox.
*
* @return the height scale factor (1.0 = default).
*/
float getHeightScale();
/**
* Sets the height scale factor for the hitbox.
* Clamped to the server-configured maximum.
*
* @param heightScale the height scale factor.
*/
void setHeightScale(float heightScale);
}