Commit Graph

776 Commits

Author SHA1 Message Date
77d38b0c4e update data/packetid 2023-08-19 04:56:02 +08:00
519f9182b0 update data/lang 2023-08-19 04:56:02 +08:00
7506de289b Improve CFB8 implementation (#256)
* Add CFB8 tests & benchmark

* Improve CFB8 implementation

* Cleanup code

* Speed up with copy function

* Even faster

* Fix & more tests

* Fix tests

* Fix typo
2023-08-19 11:10:28 +08:00
d3f53beec7 Add option for queue (#262) 2023-08-19 11:07:45 +08:00
fe34dbd8bb Add proper support for chunk modification timestamps (#260) 2023-07-12 08:56:31 +08:00
15478690a0 Fix/init heightmaps before use (#258)
* fix: init heightmaps map before use if nil
2023-06-28 11:20:48 +08:00
2c3bab9a98 revert language changes 2023-06-25 22:30:20 +08:00
abdc3ba80c Update blocks items and entities to 1.19.4 2023-06-25 22:30:20 +08:00
940df0a968 KeepAlive enhancement.
If the server doesn't send keepalive for 20 seconds, generate an error.
fix #251, close #255
2023-06-25 22:08:13 +08:00
d0ef493639 fix #254 2023-06-25 21:39:16 +08:00
b09ea0a3eb Fix comments 2023-06-06 09:25:13 +08:00
99096fac8a Add unit test case for anonymous field 2023-04-29 00:47:52 +08:00
7aec6caa96 add entitytype registry 2023-04-29 00:41:45 +08:00
eff554cde1 Add .Palette() for PaletteContainer 2023-04-27 20:17:58 +08:00
e435ab18f7 Remove FieldsUnmarshaler and FieldsMarshaler 2023-04-27 01:27:41 +08:00
078aaba156 Anonymous field handling for NBT 2023-04-26 23:17:49 +08:00
9582bc2a7e rename fastnbt -> dynbt. add some NewXXX api 2023-04-25 01:10:15 +08:00
37d4179bb2 Finish development of fastnbt 2023-04-24 21:59:30 +08:00
ad3f69e40b Experimental fastnbt library 2023-04-24 01:40:22 +08:00
de254fb1c6 Fix the issue of snbt decoding when TagList in TagCompound in TagList 2023-04-24 01:29:20 +08:00
cbf5a7c053 Fix the issue of snbt decoding when Tag*Arrays in TagCompound 2023-04-24 01:04:21 +08:00
a511ad3d2a Fix the issue of snbt being unable to handle nested Tag*Arrays in TagCompound 2023-04-23 23:00:24 +08:00
d4d9653038 Optimize level/biome 2 2023-04-23 08:41:17 +08:00
93e06594bd Add entity struct for /save 2023-04-23 01:17:51 +08:00
be42d0ec35 fix heightmaps sending error 2023-04-23 00:51:22 +08:00
5f06fa6510 重构 BiomesState, fix typo 2023-04-23 00:08:05 +08:00
de2996336c Update level/chunk and heightmaps 2023-04-22 17:43:10 +08:00
e17642945d Update save/level, add missing fields and enable disallow unknown fields 2023-04-22 15:27:47 +08:00
2856c90170 Update Teleported event 2023-04-20 23:51:18 +08:00
4315d1440c Update blockentitytype.go 2023-04-18 00:34:17 +08:00
90737d09e4 Clean up unnecessary garbage 2023-04-16 21:14:29 +08:00
7bef059b44 Fix nbt bugs that cannot handle tagNames contains commas 2023-04-16 20:42:28 +08:00
fd4a4bdeb1 Remove travis things. 2023-04-09 14:40:48 +08:00
e99e749f7f Optimize packWithCompression 2023-04-05 22:39:58 +08:00
943d9fbe26 Add benchmark for pk.Packet.packWithCompression() 2023-04-05 22:24:06 +08:00
48a6956090 pk.NBT() disallow unknown field by default 2023-04-05 21:05:59 +08:00
91e23602a5 Remove bytes.Buffer usage in pk.NBT() 2023-04-05 19:46:10 +08:00
a42267ba31 Replace all interface{} to any 2023-04-05 19:35:20 +08:00
195945e4ca Fix server for 1.19.4 2023-04-05 18:06:29 +08:00
a9ab97292d Add example programs that sniff the RegistryCodec.nbt 2023-04-05 18:04:05 +08:00
2e838101db Update dependencies 2023-04-05 14:15:11 +08:00
9aad4d2201 Update bot and server ProtocolVersion 2023-04-05 01:55:48 +08:00
016455d00a Fix go test ./... 2023-04-05 01:46:37 +08:00
3cf4049f2d Update langs to 1.19.4 2023-04-05 01:39:28 +08:00
4dfee51bfc Update data to 1.19.4 2023-04-05 01:19:49 +08:00
69f239550f Update README.md 2023-04-05 00:33:55 +08:00
925b1359fc Use packet queue for bot framework.
Providing concurrently-safing for sending packets.
2023-04-01 10:02:28 +08:00
90501f1357 fix VarInt written bytes counting problem. And add some comments. 2023-04-01 09:58:28 +08:00
a8f9c4bee5 Write entire compressed packet at once (#236) 2023-04-01 09:57:16 +08:00
6bbfeec2c7 fix go vet 2023-04-01 09:33:33 +08:00