Ryan
c8cc7a021c
Add valence_nbt to valence
2022-08-29 19:28:19 -07:00
Ryan
55cb595740
Improve chunks API
2022-08-10 20:09:10 -07:00
Ryan
e27144bc01
Direct bits per idx for biomes depends on the size of the biome registry
2022-08-10 19:15:53 -07:00
Ryan
d4d169d130
Use chunk state instead of HashSet
2022-08-09 17:24:21 -07:00
Ryan
1838c290a0
Extract slotmap logic into separate modules
2022-08-08 18:42:39 -07:00
Ryan
e21fd70160
Restructure packet module
2022-07-29 05:34:29 -07:00
Ryan
959e2b2deb
Rename packets
...
Use yarn packet names (with some exceptions) for better consistency. We should also avoid using Mojang names for things in the future.
2022-07-29 04:49:08 -07:00
Ryan
35c697ff93
Rename *Data to *State
2022-07-27 19:21:11 -07:00
Ryan
865ab76699
Add custom data
2022-07-15 20:40:39 -07:00
Ryan
4b83801066
Clean up docs and fix clippy issues
2022-07-14 23:18:20 -07:00
Ryan
3f150b4c8a
Document most items
2022-07-11 05:08:02 -07:00
Ryan
24cf864ed1
Don't export items arbitrarily at the crate root
2022-07-06 18:27:59 -07:00
Ryan
0f8b906265
Make the packet inspector error resistant
2022-07-04 18:22:29 -07:00
Ryan
622f15e71d
Implement client world switching
2022-07-03 17:32:05 -07:00
Ryan
79cb4c159a
Store entities and clients per server rather than per world
2022-07-03 15:31:24 -07:00
Ryan
9a87fda211
Rename packets
2022-06-30 14:18:29 -07:00
Ryan
560163fd2e
Expose the protocol API behind a feature flag
...
This could be useful for building proxies or clients in the future.
2022-06-30 11:53:57 -07:00
Ryan
806ffa4f42
Remove &mut wrappers
...
The mutable reference wappers were causing more problems than they were
solving. We will document the dangers of mem::swap later.
2022-06-29 11:09:00 -07:00
Ryan
055dd03ffc
Implement the player list
2022-06-27 17:52:23 -07:00
Ryan
d7d922399a
Add more client events
2022-06-24 16:11:15 -07:00
Ryan
69ba704352
Implement the block change packets
2022-06-22 08:06:54 -07:00
Ryan
8ad9c8587a
Upgrade the chunk example
2022-06-19 08:40:37 -07:00
Ryan
efc2873908
Reorganize modules
2022-06-09 20:26:21 -07:00
Ryan
1570c95ac8
Get entity movement working
2022-05-17 02:58:43 -07:00
Ryan
8da32d0b8b
Fix bug in chunk encoder
2022-05-16 11:53:21 -07:00
Ryan
620c0bf287
Replace nalgebra-glm with vek
...
Vek has been pleasant to use in practice. nalgebra is slow to compile
and its documentation is difficult to traverse. Vek also comes with its
own AABB impl, so we use that instead.
2022-05-16 04:09:51 -07:00
Ryan
adc8a4faae
Give World ownership over entities, clients, and chunks.
...
This change was made to make it easier for invariants to be upheld. When
the spatial partition is added, we can ensure that changes to entities
are immediately reflected in the partition. Additionally, chunks being
shared between worlds was a leaky abstraction to begin with and is now
removed. A method in `Config` is now necessary to determine what world a
client should join.
Along with this, most mutable references have been wrapped in a newtype
to ensure that `mem::swap` cannot be used on them, which would break
invariants. This is analogous to `Pin<&mut T>`. The reason we can't use
Pin directly is because it would require unnecessary unsafe code
within the library.
2022-05-16 02:36:14 -07:00
Ryan
72fe8395cb
Use the block state API in chunk.rs.
2022-04-30 19:05:38 -07:00
Ryan
a0892faa72
Put all config options in a single trait
2022-04-30 05:06:20 -07:00
Ryan
732183dd62
Rip out the ECS.
2022-04-29 00:48:41 -07:00
Ryan
5bbbb258d1
move from private repo
2022-04-14 14:55:45 -07:00