Skip to content

Purpose of 1.0 release #58

@jonathanfine

Description

@jonathanfine

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.getGroundHeight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions