mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Added setRotation(float rotationYaw, float rotationPitch) function for IEntity & ICustomNpc
This commit is contained in:
1 parent
612a2d7593
commit
28a1650c05
3 files changed
+14
-1
No files matched your search
@@ -728,6 +728,11 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
entity.rotationYaw = rotation;
|
||||
}
|
||||
|
||||
public void setRotation(float rotationYaw, float rotationPitch) {
|
||||
entity.rotationYaw = rotationYaw;
|
||||
entity.rotationPitch = rotationPitch;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Current rotation of the entity
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user