From f31b81cfe95b7dacc691fc89a2f9745adac1e768 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sat, 26 Nov 2011 01:31:49 -1000 Subject: [PATCH] rename playerOrientation to getPlayerOrientation --- indev.py | 2 +- infiniteworld.py | 2 +- level.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/indev.py b/indev.py index 2f961ba..6d3c5c1 100644 --- a/indev.py +++ b/indev.py @@ -115,7 +115,7 @@ class MCIndevLevel(EntityLevel): if x["id"].value == "LocalPlayer": x["Rotation"] = TAG_List([TAG_Float(p) for p in yp]) - def playerOrientation(self, player="Ignored"): + def getPlayerOrientation(self, player="Ignored"): """ returns (yaw, pitch) """ for x in self.root_tag["Entities"]: if x["id"].value == "LocalPlayer": diff --git a/infiniteworld.py b/infiniteworld.py index 81db7c6..92b71c9 100644 --- a/infiniteworld.py +++ b/infiniteworld.py @@ -2989,7 +2989,7 @@ class MCInfdevOldLevel(ChunkedLevelMixin, EntityLevel): def setPlayerOrientation(self, yp, player="Player"): self.getPlayerTag(player)["Rotation"] = nbt.TAG_List([nbt.TAG_Float(p) for p in yp]) - def playerOrientation(self, player="Player"): + def getPlayerOrientation(self, player="Player"): """ returns (yaw, pitch) """ yp = map(lambda x:x.value, self.getPlayerTag(player)["Rotation"]); y, p = yp; diff --git a/level.py b/level.py index e28777c..073336c 100644 --- a/level.py +++ b/level.py @@ -556,7 +556,7 @@ class MCLevel(object): def setPlayerOrientation(self, yp, player="Player"): pass - def playerOrientation(self, player="Player"): + def getPlayerOrientation(self, player="Player"): return (-45., 0.)