mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 12:04:43 +00:00
- ITintData - IHitboxData - Sound Management APIS - Tactical Chance - Swimming - Fire Reactions - Sprint - Door Interact - Walking Range
55 lines
1.4 KiB
Java
55 lines
1.4 KiB
Java
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);
|
|
}
|