Commit graph

951 commits

Author SHA1 Message Date
mat
0641dac7f0 simd number arrays 2023-03-23 20:20:13 -05:00
mat
bdc4255747 >=128 2023-03-23 20:10:52 +00:00
mat
95925b64fa nbt lookup optimization 2023-03-23 19:38:18 +00:00
mat
5e5682ab52 polish nbt a bit 2023-03-23 18:04:53 +00:00
mat
ecb3f2ffd7 rename Tag to Nbt 2023-03-23 13:55:33 +00:00
mat
2a07962af9 default for nbtcompound 2023-03-23 13:54:08 +00:00
mat
d08bf9b943 make encode not a Result and small optimizations 2023-03-23 00:19:00 -05:00
mat
c3b63ad129 binary search map 2023-03-22 23:18:55 -05:00
mat
350bbac282 rename benchmarks 2023-03-22 20:59:33 -05:00
mat
95e9ec51dc improve comparison benchmark 2023-03-22 20:49:52 -05:00
mat
03a672ee9b make nbt code more readable and add comparison benchmark 2023-03-22 19:31:28 -05:00
mat
228ee4a2f0 optimize nbt lists 2023-03-22 19:52:19 +00:00
mat
75e62c9136 use enum-as-inner in nbt 2023-03-22 17:58:37 +00:00
mat
6738be8090 use compact_str in nbt 2023-03-22 13:52:38 +00:00
mat
b276978195 clear titles packet 2023-03-21 18:20:47 +00:00
mat
157ac22461 remove unused dependencies
thanks cargo-udeps
2023-03-21 18:07:40 +00:00
mat
4865b772f6 mention the other version branches in the readme 2023-03-14 16:37:14 -05:00
mat
12a9c8ce65
1.19.4 (#57)
* 23w03a

* 23w04a

* 23w05a

* 23w06a

* fix

* 23w07a

mojang broke their json data generator so some stuff is missing

* didn't mean to commit that file here

* 1.19.4-pre2

* fix

* 1.19.4-pre3

* fix

* how did these packets get here

* 1.19.4-pre4

* 1.19.4-rc1

* 1.19.4-rc2

* 1.19.4-rc3

* merge main

* remove debugging code

* 1.19.4
2023-03-14 16:33:03 -05:00
mat
b792e21d1c cargo update 2023-03-14 01:24:13 -05:00
mat
aa846bc027 make ResourceLocation::new -> Self and impl Serialize/Deserialize for ResourceLocation 2023-03-14 01:22:15 -05:00
EightFactorial
1ff2495962
Do not deserialize full registry by default (#83)
* Do not deserialize full registry by default

* Only need height and min_y
2023-03-12 20:49:10 -05:00
mat
cd0a1ed8d4 fix doc errors 2023-03-11 17:02:57 -06:00
mat
40a0c8acfb slightly optimize azalea_nbt::Tag::id 2023-03-11 16:38:13 -06:00
Luna
81e7adb409
Fix infinite recursion in the DNS resolver (#82) 2023-03-11 16:11:35 -06:00
EightFactorial
c57c68ddf8
Add RegistryHolder struct and serde features (#81)
* Make RegistryHolder struct

* Update deps

* Move RegistryHolder to azalea-protocol

* Convert bytes to bools and back

* Rename and shuffle logic

* Move logic into trait, rename methods

* Final touchups

* Ah, merge mistakes

* Add serde support for ResourceLocation

* Reuse structs

* Error when serde skips values in debug mode
Add missing attributes

* Strict_registry feature, require packet feature

* Add test

* Move into packets

* Docs and touchups

* Reword docs

* Move into module inside ClientboundLoginPacket

* Add azalea-nbt serde feature

* remove duplicate comment and type_ -> kind

---------

Co-authored-by: mat <github@matdoes.dev>
2023-03-11 16:00:10 -06:00
mat
f28efd5637 make ClientInformation and TabList their own components 2023-03-08 19:26:40 +00:00
mat
5ce830ae6c merge main 2023-03-08 16:35:12 +00:00
mat
5dd35c7ed8
Add World::find_block (#80)
* start adding World::find_block

* keep working on find_block

* BlockStates

* fix sorting

* update examples that use find_one_block

* azalea_block::properties

* fix tests

* add a gotoblock command to testbot
2023-03-07 22:09:56 -06:00
mat
719379a8a7
Bevy 0.10 (#79)
* replace 0.9.1 with 0.10.0

* start migrating to bevy .10

* well it compiles

* doesn't immediately panic

* remove unused imports

* fmt

* delete azalea-ecs

* make RelativeEntityUpdate an EntityCommand

* fix a doc test

* explain what FixedUpdate does
2023-03-07 14:14:36 -06:00
mat
bf4ff51789 remove a ? 2023-03-01 21:08:03 +00:00
mat
7bfca9d228 Merge branch 'main' of https://github.com/mat-1/azalea into main 2023-03-01 21:02:42 +00:00
mat
9b1b03d4ac fix reconnecting in testbot example 2023-03-01 21:02:33 +00:00
Shayne Hartford
91d97adb4f
Remove invalid characters and truncate messages and commands to 256 (#78)
* Remove invalid characters and truncate messages and commands to 256

* Remove duplicated use statements

* Remove to_owned and use matches! macro
2023-02-27 21:44:45 -06:00
mat
b4c62d0987
also run action on prs 2023-02-27 20:56:38 -06:00
Shayne Hartford
ec5f05c345
Change Windows env from USERPROFILE to APPDATA (#77) 2023-02-27 09:45:04 -06:00
Shayne Hartford
adfbb97af8
Add set_state and set_swarm_state (#76)
* Add set_state and set_swarm_state

* Add [must_use], Remove set_state, and change state to swarm_state

* Forgot the other must_use

* I'm not good at this
2023-02-26 23:18:02 -06:00
mat
cbc6af81fb
Add PacketEvent (#75)
* add PacketEvent

* docs and fixes

* Event::Packet works
2023-02-26 15:07:52 -06:00
mat
c1588ef66e
Fix system order ambiguities (#74)
* start fixing stuff where systems run in the wrong order

* fix ordering ambiguity

* add debugging guide

* some fixes

* fix panic for swarms

* fix some warnings
2023-02-25 17:32:15 -06:00
mat
f5a8a59467 use rustls in reqwest 2023-02-24 19:15:49 +00:00
mat
21e3f73c23 check entity for retroactively_add_game_profile_component 2023-02-23 18:46:41 -06:00
mat
54a2eb9c95 fix jumping 2023-02-23 18:35:37 -06:00
Charles Johnson
d3af7ba7a9
fix disconnect_on_read_packets_ended (#73) 2023-02-22 13:50:08 -06:00
mat
1f5775ed4e unused import 2023-02-21 22:22:03 -06:00
mat
c52cee3a69 don't keep firing disconnectevent 2023-02-21 22:21:43 -06:00
mat
48640ca303 properly disconnect on ungraceful disconnect 2023-02-21 21:53:22 -06:00
mat
66094921c8 make metadata components clonable 2023-02-21 21:46:41 -06:00
EightFactorial
6942e3547b
Fix writing palettes (#72) 2023-02-21 20:17:32 -06:00
mat
40073f5baa improve docs and rename model_customisation 2023-02-21 19:13:51 +00:00
EightFactorial
d88ca2d865
Make things public (#71)
* Make struct data pub

* Add derives

* Rename packet fields

* Make Palette structs pub
2023-02-21 12:13:06 -06:00
mat
71308ee0a3 fix 0ns delay 2023-02-15 22:45:03 -06:00