valence/crates/valence_client/src
Ryan Johnson 2ed5a8840d
Anvil Rework (#367)
## Description

Solidify the design of `valence_anvil` so that most of the boilerplate
in the anvil example is eliminated. `AnvilLevel` is now a component of
`Instance` and automatically loads and unloads chunks as clients move
around. Events are used to communicate when chunks are loaded and
unloaded.

Also changes the system message API and introduces the `SendMessage`
trait.

Checks off a box in #288

### Known Issues
- Still no support for saving or entities.
- The handling of chunk `min_y` is wrong. I plan to fix this in an
upcoming redesign of instances and chunks.
- Uses one OS thread per anvil level. This could be improved with a
dedicated shared thread pool to parallelize the loading process.
However, it seems decently fast as it is.
- Old benchmark is commented out.
- Could use some tests.
2023-06-15 14:11:37 -07:00
..
action.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
command.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
custom_payload.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
event_loop.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
hand_swing.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
interact_block.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
interact_entity.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
interact_item.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
keepalive.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
lib.rs Anvil Rework (#367) 2023-06-15 14:11:37 -07:00
message.rs Anvil Rework (#367) 2023-06-15 14:11:37 -07:00
movement.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
op_level.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
packet.rs Update to Minecraft 1.20.1 (#358) 2023-06-13 14:38:55 -07:00
resource_pack.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
settings.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
status.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
teleport.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
title.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00
weather.rs Move packets out of valence_core. (#335) 2023-05-29 01:36:11 -07:00