mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 23:25:08 +00:00
Entity API Documentation
This commit is contained in:
1 parent
3593a09d1d
commit
8c2c226d34
21 files changed
+2778
-1142
No files matched your search
@@ -1,18 +1,59 @@
|
||||
package noppes.npcs.api.entity.data;
|
||||
|
||||
public interface IModelRotate {
|
||||
|
||||
boolean whileStanding();
|
||||
|
||||
void whileStanding(boolean whileStanding);
|
||||
|
||||
boolean whileAttacking();
|
||||
|
||||
void whileAttacking(boolean whileAttacking);
|
||||
|
||||
boolean whileMoving();
|
||||
|
||||
void whileMoving(boolean whileMoving);
|
||||
|
||||
IModelRotatePart getPart(int part);
|
||||
}
|
||||
package noppes.npcs.api.entity.data;
|
||||
|
||||
/**
|
||||
* Represents the rotation configuration for a model.
|
||||
* It controls how different parts of a model rotate under various conditions.
|
||||
*/
|
||||
public interface IModelRotate {
|
||||
|
||||
/**
|
||||
* Checks if rotation is applied while the entity is standing.
|
||||
*
|
||||
* @return true if rotation while standing is enabled; false otherwise.
|
||||
*/
|
||||
boolean whileStanding();
|
||||
|
||||
/**
|
||||
* Sets whether rotation should be applied while the entity is standing.
|
||||
*
|
||||
* @param whileStanding true to enable; false to disable.
|
||||
*/
|
||||
void whileStanding(boolean whileStanding);
|
||||
|
||||
/**
|
||||
* Checks if rotation is applied while the entity is attacking.
|
||||
*
|
||||
* @return true if rotation while attacking is enabled; false otherwise.
|
||||
*/
|
||||
boolean whileAttacking();
|
||||
|
||||
/**
|
||||
* Sets whether rotation should be applied while the entity is attacking.
|
||||
*
|
||||
* @param whileAttacking true to enable; false to disable.
|
||||
*/
|
||||
void whileAttacking(boolean whileAttacking);
|
||||
|
||||
/**
|
||||
* Checks if rotation is applied while the entity is moving.
|
||||
*
|
||||
* @return true if rotation while moving is enabled; false otherwise.
|
||||
*/
|
||||
boolean whileMoving();
|
||||
|
||||
/**
|
||||
* Sets whether rotation should be applied while the entity is moving.
|
||||
*
|
||||
* @param whileMoving true to enable; false to disable.
|
||||
*/
|
||||
void whileMoving(boolean whileMoving);
|
||||
|
||||
/**
|
||||
* Retrieves the rotation settings for a specific part of the model.
|
||||
* Parts are indexed as follows: 0 - head, 1 - body, 2 - left arm, 3 - right arm, 4 - left leg, 5 - right leg.
|
||||
*
|
||||
* @param part the index of the model part.
|
||||
* @return the rotation settings for the specified part.
|
||||
*/
|
||||
IModelRotatePart getPart(int part);
|
||||
}
|
||||
Reference in new issue
Block a user