Commit Graph

64 Commits

Author SHA1 Message Date
Jim Chen
c80cfd50fe
Upgrade to 1.14.4(Same Packet Format) 2019-07-26 09:10:35 +08:00
Sillyfrog
d90f08c503 Update to v1.14.3 (same packet format) 2019-06-25 15:13:17 +02:00
joodicator
234e57716c Increment package version to 0.6.0 2019-05-29 18:47:14 +02:00
joodicator
d1e1da85c8 Declare support for 1.14.2 pre-releases 1-4 (481-484); update README 2019-05-29 18:26:06 +02:00
Sillyfrog
6d9d15845a Support for 1.14.2 (same packet format) 2019-05-29 15:37:25 +10:00
joodicator
7b1567c352 Improve test coverage wrt protocol versions; other fixes/improvements
Improvements to the test suite:
* List release version names and numbers in minecraft/__init__.py.
* Make some tests, which previously ran for *all* protocol versions,
  run only for release protocol versions (to improve test performance).
* Make some tests, which previously ran only for the latest protocol
  version, run for all release protocol versions (to improve coverage).
* Print each protocol version being tested to the debug log, to help
  identify sources of errors.
* Use the `nose-timer' plugin to show the run time of each test.

Fix errors revealed by increased test coverage:
* Fix: SoundEffectPacket.Pitch is not serialised correctly for early
  protocol versions.
* Fix: handleExceptionTest finishes later than necessary because
  the test overrode an exception handler used internally by
  `_FakeServerTest', causing the server thread to time out after 4s.
* Add support for multiple exception handlers in `Connection'
  (required for the above).

Improvements to data descriptors:
* Make syntax of property declarations more consistent/Pythonic.
* Factor the definition of several aliasing properties into the
  utility methods `attribute_alias' and `multi_attribute_alias',
  which construct suitable data descriptors.
* Define and use the named tuple `Direction' for (pitch, yaw) values.
2019-05-14 18:41:58 +02:00
joodicator
b3cf00a856 Add support for Minecraft 1.14.1 Pre Release 1 to 1.14.1 (protocols 478 to 480) 2019-05-13 22:25:40 +02:00
joodicator
612fa8e324 Add support for Minecraft 18w43a to 1.14 (protocols 441 to 477)
This commit introduces two backward-incompatible changes which may break
existing code:

(1) `networking.packets.clientbound.play.SpawnObjectPacket.EntityType'
is no longer accessible as an attribute of the the `SpawnObjectPacket'
class: the values now depend on a `ConnectionContext`, and must be
accessed through an instance, or using `SpawnObjectPacket.field_enum'.
See the text of the `AttributeError` raised from the descriptor for
`SpawnObjectPacket.EntityType` for the full details.

(2) For some subclasses of `networking.types.Type', it is necessary to
call the methods `read_with_context' and `send_with_context' instead of
`read' and `send', supplying a `ConnectionContext' for those data types
- currently only `Position` - whose layout depends on it.
2019-05-11 08:43:51 +02:00
joo
527f3d3146 Add support for Minecraft 1.13.2-pre1, 1.13.2-pre2 and 1.13.2 (protocols 402 to 404). 2018-10-26 19:58:20 +01:00
joo
0eec179f48 Add support for Minecraft 1.13.1 and 1.13.1-pre2 (protocols 400 to 401). 2018-08-23 07:42:28 +01:00
joo
720868fab7 Add support for Minecraft 18w80a to 1.13.1-pre1 (protocols 394 to 399). 2018-08-19 18:11:12 +01:00
joo
adc8d15ddc Add support for Minecraft 1.13 and 1.13-pre3 to pre10 (protocols 385 to 393).
Add clientbound.login.PluginRequestPacket and serverbound.login.PluginResponsePacket.
2018-07-19 09:50:13 +01:00
joo
201e075591 Add support for Minecraft pre-release 1.13-pre2 (protocol 384). 2018-06-20 09:50:20 +01:00
joo
0a1776f97a Add support for Minecraft versions 18w22a to 1.13-pre1 (protocols 380 to 383). 2018-06-05 01:14:19 +01:00
joo
f22447b97a Add support for Minecraft snapshot 18w21b (protocol 379). 2018-05-25 19:35:32 +01:00
joo
bbf7200220 Add support for Minecraft snapshot 18w21a (protocol 378). 2018-05-24 12:59:06 +01:00
joo
52c0671f4f Add support for Minecraft snapshots 18w03a-18w20c (protocol 354-377). 2018-05-20 06:58:23 +01:00
joo
f492adfeff Add support for Minecraft snapshots 17w43a-18w02a (protocol 341-353).
Add support declaration for Minecraft version 1.8.9 (protocol 47).
2018-01-13 01:12:28 +00:00
joo
1766b30983 Remove duplicates from SUPPORTED_PROTOCOL_VERSIONS. 2018-01-07 23:56:31 +00:00
TheSnoozer
61d9695226 support 1.12.2 2017-09-19 18:30:51 -04:00
joo
9e7e75f9a7 Increment package version to 0.5.0. 2017-08-03 19:08:36 +01:00
joo
33cd42848e Add version data for Minecraft 1.12.1 (protocol 338). 2017-08-03 18:48:36 +01:00
joo
5aa2d3df59 Add support for Minecraft 17w31a and 1.12.1-pre1 (protocols 336 and 337). 2017-08-03 18:31:00 +01:00
joo
991f0b3da6 Increment package version to 0.4.0. 2017-06-09 09:25:56 +01:00
joo
8d1dcec3e2 Add version data for Minecraft 1.12 (protocol 335). 2017-06-07 22:06:01 +01:00
joo
bcf22b8312 Add version data for Minecraft pre-release 1.12-pre7 (protocol 334). 2017-06-02 21:32:11 +01:00
joo
0cc96f7dc5 Add version data for Minecraft pre-release 1.12-pre6 (protocol 333). 2017-05-29 17:31:04 +01:00
joo
b7290cf327 Add support for Minecraft pre-release 1.12-pre5 (protocol 332). 2017-05-20 05:27:23 +01:00
joo
a1570bd3a9 Add version data for Minecraft pre-releases 1.12-pre3 and 1.12-pre4 (protocols 330 and 331). 2017-05-19 12:22:42 +01:00
joo
028ef3f802 Add version data for Minecraft pre-release 1.12-pre2 (protocol 329). 2017-05-12 00:52:31 +01:00
joo
0d42c18211 Add version data for Minecraft pre-release 1.12-pre1 (protocol 328). 2017-05-11 10:16:11 +01:00
Nigel Todman
0ffb08327a Add version data for Minecraft snapshot 17w18b (protocol 327).
(Squash and merge pull request #59: Added 17w18b)
2017-05-05 08:11:59 +01:00
Nigel Todman
5805d6e476 Added 17w18a
Added 17w18a
2017-05-03 23:23:19 -04:00
joo
e2c4c97ea5 Add version data for Minecraft snapshots 17w16a-17w17b (protocols 322-325). 2017-04-28 20:00:26 +01:00
joo
3981c46569 Add version data for Minecraft snapshot 17w15a (protocol 321). 2017-04-16 01:47:48 +01:00
joo
f27689f729 Add version data for Minecraft snapshots 17w13b and 17w14a (protocols 319 and 320). 2017-04-06 17:25:25 +01:00
joo
73672401ef Add support for Minecraft snapshot 17w13a (protocol 318). 2017-03-31 08:59:14 +01:00
joo
b0f15ed5a2 Add version data for Minecraft snapshot 17w06a (protocol 317). 2017-03-31 08:27:04 +01:00
joo
7fd37a79f2 Add version data for Minecraft 1.11.2 (protocol 316). 2016-12-21 17:06:35 +00:00
joo
00ab1b4209 Add version data for Minecraft 1.11.1 (protocol 316). 2016-12-20 16:10:58 +00:00
joo
f560f73df8 Add support for Minecraft snapshot 16w50a (protocol 316). 2016-12-16 08:01:26 +00:00
joo
988653a922 Increment package version to 0.3.0. 2016-11-23 20:27:20 +00:00
joo
037ca68b19 Add support for Minecraft 1.11 (protocol 315). 2016-11-14 23:33:08 +00:00
joo
b429a4579b Add support for Minecraft 16w43a, 16w44a (protocol 313) and 1.11-pre1 (protocol 314). 2016-11-13 22:11:56 +00:00
joo
8e3f1b18b7 Add support for Minecraft snapshot 16w42a (protocol 312). 2016-10-19 19:24:45 +01:00
joo
4f263a0038 Add support for Minecraft snapshot 16w41a (protocol 311). 2016-10-14 07:42:09 +01:00
joo
5e0f506531 Add support for Minecraft snapshot 16w40a (protocol 310). 2016-10-07 05:04:38 +01:00
joo
7ab7381261 Fix infinite loop in protocol negotiator.
Add missing protocol versions for 1.10.1 and 1.10.2.
2016-10-01 15:52:17 +01:00
joo
0c792a3f22 Add support for Minecraft snapshots 16w39b and 16w39c (protocols 308 and 309). 2016-09-30 21:36:03 +01:00
joo
caddf653de Add support for Minecraft snapshot 16w39a (protocol 307). 2016-09-29 09:55:48 +01:00