-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minecraft Low Level API: First draft #44
base: master
Are you sure you want to change the base?
Conversation
For the settings() functions would suggest kwargs in appropriate namespace. world player To make player auto jump up small block height differences when moving around |
""" | ||
The command base class. | ||
""" | ||
_func_prefix = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to find a nicer name for this, it took me a few minutes to track down what it's used for. However I'm not sure what a nicer name would be…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you know a better one, let me know :)
@dbrgn – This is a great start! |
Re
would you mind using that and patching/overriding as appropriate please? |
@hashbangstudio: I did a first attempt at implementing the setting functions (85e21fd). What do you think? I'm also not sure if autojump is a global setting or not. I've also not yet played around with multiple players, but it's something we'd need to figure out before releasing this code. |
@doismellburning: Didn't we decide that we should leave the legacy API as-is to be able to improve the new low level implementation without any backwards incompatibility fears? It limits the flexibility regarding the implementation, and implementation changes could affect the legacy API. I'd certainly be up for improving the connection class, the current one causes a lot of random issues and has nonexistant error reporting. But if we share a codebase for the legacy low level API and the new low level API we limit ourselves. |
Another note: Last week I did two 4.5h courses for 4 kids each (around 12-14y) where we introduced them to Minecraft and
|
Leaving the legacy API as-is, yes - I'm very much pro improving the implementation underneath though, partly because it's a faster route to improvement.
I'd like to see specific cases here
Agreed
I'm not talking about sharing everything, but right now, your
Nicely done :) Interesting data! |
OK, I can move the improvements into the original connection module. But I'd prefer to do it in a separate PR later on. Is that fine? |
<3 small focussed PRs |
So how should we handle this PR? |
Retarget it onto your |
PRs can't be retargeted :) Feel free to +9000 this issue. isaacs/github#18 |
Sure, sorry, I keep using that term as shorthand |
Still WIP, I want to do a few tests before this is merged.
In the meantime, feel free to look over the code, I'd be happy about feedback.
I'm not sure how we should deal with the connection class. It's probably better if we keep it separate from the
mcpi
version, then we can improve it without having to deal with low level backwards compatibility (e.g. people trying to catch specific exceptions).Once this is merged, it should fix #10.