Package noppes.npcs.api.entity.data
Interface IModelRotatePart
-
public interface IModelRotatePartRepresents 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandisabled()Checks whether rotation is disabled for this part.voiddisabled(boolean enabled)Enables or disables rotation for this part.floatgetRotateX()Returns the rotation angle around the X-axis.floatgetRotateY()Returns the rotation angle around the Y-axis.floatgetRotateZ()Returns the rotation angle around the Z-axis.voidsetRotation(float x, float y, float z)Sets the rotation angles for this model part.
-
-
-
Method Detail
-
setRotation
void setRotation(float x, float y, float z)Sets the rotation angles for this model part.- Parameters:
x- the rotation angle around the X-axis.y- the rotation angle around the Y-axis.z- the rotation angle around the Z-axis.
-
getRotateX
float getRotateX()
Returns the rotation angle around the X-axis.- Returns:
- the X-axis rotation.
-
getRotateY
float getRotateY()
Returns the rotation angle around the Y-axis.- Returns:
- the Y-axis rotation.
-
getRotateZ
float getRotateZ()
Returns the rotation angle around the Z-axis.- Returns:
- the Z-axis rotation.
-
disabled
void disabled(boolean enabled)
Enables or disables rotation for this part.- Parameters:
enabled- true to disable rotation; false to enable.
-
disabled
boolean disabled()
Checks whether rotation is disabled for this part.- Returns:
- true if rotation is disabled; false otherwise.
-
-