Package noppes.npcs.api.entity.data
Interface IModelRotate
-
public interface IModelRotate
Represents the rotation configuration for a model. It controls how different parts of a model rotate under various conditions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IModelRotatePart
getPart(int part)
Retrieves the rotation settings for a specific part of the model.boolean
whileAttacking()
Checks if rotation is applied while the entity is attacking.void
whileAttacking(boolean whileAttacking)
Sets whether rotation should be applied while the entity is attacking.boolean
whileMoving()
Checks if rotation is applied while the entity is moving.void
whileMoving(boolean whileMoving)
Sets whether rotation should be applied while the entity is moving.boolean
whileStanding()
Checks if rotation is applied while the entity is standing.void
whileStanding(boolean whileStanding)
Sets whether rotation should be applied while the entity is standing.
-
-
-
Method Detail
-
whileStanding
boolean whileStanding()
Checks if rotation is applied while the entity is standing.- Returns:
- true if rotation while standing is enabled; false otherwise.
-
whileStanding
void whileStanding(boolean whileStanding)
Sets whether rotation should be applied while the entity is standing.- Parameters:
whileStanding
- true to enable; false to disable.
-
whileAttacking
boolean whileAttacking()
Checks if rotation is applied while the entity is attacking.- Returns:
- true if rotation while attacking is enabled; false otherwise.
-
whileAttacking
void whileAttacking(boolean whileAttacking)
Sets whether rotation should be applied while the entity is attacking.- Parameters:
whileAttacking
- true to enable; false to disable.
-
whileMoving
boolean whileMoving()
Checks if rotation is applied while the entity is moving.- Returns:
- true if rotation while moving is enabled; false otherwise.
-
whileMoving
void whileMoving(boolean whileMoving)
Sets whether rotation should be applied while the entity is moving.- Parameters:
whileMoving
- true to enable; false to disable.
-
getPart
IModelRotatePart getPart(int part)
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.- Parameters:
part
- the index of the model part.- Returns:
- the rotation settings for the specified part.
-
-