rename playerOrientation to getPlayerOrientation

This commit is contained in:
David Vierra 2011-11-26 01:31:49 -10:00
parent c50a73fb2b
commit f31b81cfe9
3 changed files with 3 additions and 3 deletions

View File

@ -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":

View File

@ -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;

View File

@ -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.)