From 632e92f82e97088bc8e3ee748e5cbafc708c1f13 Mon Sep 17 00:00:00 2001 From: luisc Date: Tue, 1 Feb 2022 05:10:38 -0600 Subject: [PATCH] Added set/getPitch to ScriptEntity --- src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java b/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java index 68b78ebde..dab54f511 100644 --- a/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java +++ b/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java @@ -509,12 +509,16 @@ public class ScriptEntity implements IEntity { } /** - * @return Current rotation of the npc + * @return Current rotation of the entity */ public float getRotation(){ return entity.rotationYaw; } + public void setPitch(float pitch){entity.rotationPitch = pitch;} + + public float getPitch(){return entity.rotationPitch;} + /** * @param power How strong the knockback is * @param direction The direction in which he flies back (0-360). Usually based on getRotation()