-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I'm not clear about the purpose of this release. (By the way, I think 1.0 is much too large a number, given that all we're doing is porting the software to Python3, and previously it was 0.1.1.)
@ghickman in https://github.com/py3minepi/py3minepi/pull/54#issuecomment-59644353 wrote
We are not looking to improve legacy code for the 1.0 release.
So why the additional getHeight below?
By the way, the signature of the Minecraft constructor has changed. This surely breaks backwards compatibility.
In 6eeb804 we have
class Minecraft:
"""The main class to interact with a running instance of Minecraft Pi."""
def __init__(self, connection):
self.conn = connection
self.camera = CmdCamera(connection)
self.entity = CmdEntity(connection)
self.player = CmdPlayer(connection)
self.events = CmdEvents(connection)In 9f3bfba we have
class Minecraft:
"""The main class to interact with a running instance of Minecraft Pi."""
def __init__(self, address="localhost", port=4711):
self._conn = Connection(address, port)
self.camera = CmdCamera(self._conn)
self.entity = CmdEntity(self._conn)
self.player = CmdPlayer(self._conn)
self.events = CmdEvents(self._conn)
self.getHeight = self.getGroundHeightMetadata
Metadata
Assignees
Labels
No labels