Added setRotation(float rotationYaw, float rotationPitch) function for IEntity & ICustomNpc

This commit is contained in:
Luis C.M committed 2023-01-03 23:36:53 -06:00
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
*/