mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 14:14:48 +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,16 +1,53 @@
|
||||
package noppes.npcs.api.entity.data;
|
||||
|
||||
public interface IModelRotatePart {
|
||||
|
||||
void setRotation(float x, float y, float z);
|
||||
|
||||
float getRotateX();
|
||||
|
||||
float getRotateY();
|
||||
|
||||
float getRotateZ();
|
||||
|
||||
void disabled(boolean enabled);
|
||||
|
||||
boolean disabled();
|
||||
}
|
||||
package noppes.npcs.api.entity.data;
|
||||
|
||||
/**
|
||||
* Represents the rotation settings for a specific part of a model.
|
||||
* Allows configuring the rotation angles along the X, Y, and Z axes
|
||||
* as well as enabling/disabling the rotation.
|
||||
*/
|
||||
public interface IModelRotatePart {
|
||||
|
||||
/**
|
||||
* Sets the rotation angles for this model part.
|
||||
*
|
||||
* @param x the rotation angle around the X-axis.
|
||||
* @param y the rotation angle around the Y-axis.
|
||||
* @param z the rotation angle around the Z-axis.
|
||||
*/
|
||||
void setRotation(float x, float y, float z);
|
||||
|
||||
/**
|
||||
* Returns the rotation angle around the X-axis.
|
||||
*
|
||||
* @return the X-axis rotation.
|
||||
*/
|
||||
float getRotateX();
|
||||
|
||||
/**
|
||||
* Returns the rotation angle around the Y-axis.
|
||||
*
|
||||
* @return the Y-axis rotation.
|
||||
*/
|
||||
float getRotateY();
|
||||
|
||||
/**
|
||||
* Returns the rotation angle around the Z-axis.
|
||||
*
|
||||
* @return the Z-axis rotation.
|
||||
*/
|
||||
float getRotateZ();
|
||||
|
||||
/**
|
||||
* Enables or disables rotation for this part.
|
||||
*
|
||||
* @param enabled true to disable rotation; false to enable.
|
||||
*/
|
||||
void disabled(boolean enabled);
|
||||
|
||||
/**
|
||||
* Checks whether rotation is disabled for this part.
|
||||
*
|
||||
* @return true if rotation is disabled; false otherwise.
|
||||
*/
|
||||
boolean disabled();
|
||||
}
|
||||
Reference in new issue
Block a user