Commit graph

680 commits

Author SHA1 Message Date
Ubuntu
2c77ea282f (cargo-release) version 0.5.0 2022-12-09 15:34:24 +00:00
Ubuntu
d11d413a89 auto replace version in azalea/src/lib.rs 2022-12-09 15:31:59 +00:00
Ubuntu
89c29b7a19 mention docs in readme 2022-12-09 15:15:05 +00:00
Ubuntu
ca00dbab12 Merge branch 'main' of https://github.com/mat-1/azalea into main 2022-12-09 15:13:14 +00:00
Ubuntu
f009761247 fix example in docs 2022-12-09 15:13:08 +00:00
mat
70e2dfed16 wrap_comments = true 2022-12-08 18:39:35 -06:00
Ubuntu
f2076daba5 fix a doc comment 2022-12-08 17:01:33 +00:00
mat
431f9e90a7
Reauth on invalid session (#50)
* Reauth on invalid session

* fix to actually use new token and retry auth

* fix unused vars
2022-12-07 21:58:42 -06:00
mat
7d901e39bc
1.19.3 (#34)
* start updating to 22w42a

* work a bit more on 22w42a

* player chat packet

* serverbound hello packet

* Update mod.rs

* add more stuff to clientbound player chat packet

* ClientboundPlayerInfoUpdatePacket

* features enabled and container closed

* serverbound chat packets

* make it compile

* 22w43a

* ServerboundChatSessionUpdatePacket

* profile_public_key isn't Option anymore

* Update bitset.rs

* joining a server works

* fix entitydatavalue

* backtraces + fix clientbound chat message

* fix some warnings and add more ecomments

* 22w44a

* generate en_us.json

* add updating guide to codegen/readme

* fix some markdown

* update list of generated things

* metadata stuff

* Replace PJS generator mod with PixLyzer (#38)

* pixlizer extractor

* start working on shape extraction

* fix generating language

* fix pixlyzer shape generation

* use empty_shape

* generate blocks and shapes

* update pixlyzer dir

* Revert "update pixlyzer dir"

This reverts commit ee9a0e7a49.

* fix

* fix

* Revert "fix"

This reverts commit ad12ddcb00.

* fix

* detect pixlyzer fail

* fix pixlyzer

* 22w45a

* gen entities

* add async-trait dep

* update codegen/readme.md

* explain when rust_log should be used

* remove some unused code

* start fixing pixlyzer issues

* fix a thing in codegen

* almost fixed

* more progress towards 1.19.3

* 1.19.3-pre2

* fixes

* revert some hardcoded property names

* Delete clientbound_player_info_packet.rs

* handle 1.19.3 player info packets

* handle playerinforemove

* start updating to 1.19.3-rc1

* optional registries work

* fix some issues with 1.19.3

chat doesn't work yet

* aaaaaaaaaaaaaaaaa

* oh

* ignore unused shapes

* uncomment generate_blocks

* fix migrate

* 1.19.3-rc2

* fix clippy warnings

* 1.19.3-rc3

* split the azalea-buf macro into separate modules

* improve Recipe in protocol

* 1.19.3
2022-12-07 21:09:58 -06:00
EightFactorial
9f5e5c092b
Complete ClientboundCommand{Suggestion}sPacket, Serde support for NBT Tags (#49)
* Serializing ClientboundStatusResponsePacket

Enable serialization of ClientboundStatusResponsePacket

* Update clientbound_status_response_packet.rs

Add options previewsChat and enforcesSecureChat

* Serialize Style and TextColor

* Serialize BaseComponent

* Serialize TextComponent

* Fix Style

* Serialize Component

* Fix multiple formats per message, fix reset tag

* Fix Style, again

* Use FlatMapSerializer

* Forgot italics

* Count struct fields, reorganize logic

* Serialize TranslatableComponent

* Rewrite TextComponent Serializer

* Fix using TextColor::Parse

* Code Cleanup

* Add default attribute, just in case

* Clippy

* use serde derive feature + preferred formatting choices

* McBufWritable for BrigadierNodeStub

* Thanks Clippy...

* Implement suggestions in azalea-brigadier

* Serde support for NBT Tags

* Serde options

* Forgot Options

* Oops, that's McBufWritable for BrigadierParser

* Fix McBufWritable for SlotData

* Complete ClientboundUpdateRecipesPacket

* fix some issues

* better impl McBufReadable for Suggestions

Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
Co-authored-by: mat <github@matdoes.dev>
2022-12-06 20:48:48 -06:00
mat
e99a822995 change to_ansi to not take args 2022-12-04 20:58:14 -06:00
mat
a5aa8ea0c0 revert recommending azaleamc:matrix.org because the matdoes.dev space works 2022-12-04 17:18:39 -06:00
mat
d4830b4e07 also change matrix to azaleamc:matrix.org 2022-12-04 17:14:04 -06:00
mat
5d44555655 fix matrix and discord invites 2022-12-04 17:13:42 -06:00
mat
3b56fce2c5 add matrix and discord to readme 2022-12-03 22:04:39 -06:00
mat
8e1537ab3b Fix example in azalea-world 2022-12-03 21:19:27 -06:00
EightFactorial
3b93fc6412
Serialize Component (#47)
* Serializing ClientboundStatusResponsePacket

Enable serialization of ClientboundStatusResponsePacket

* Update clientbound_status_response_packet.rs

Add options previewsChat and enforcesSecureChat

* Serialize Style and TextColor

* Serialize BaseComponent

* Serialize TextComponent

* Fix Style

* Serialize Component

* Fix multiple formats per message, fix reset tag

* Fix Style, again

* Use FlatMapSerializer

* Forgot italics

* Count struct fields, reorganize logic

* Serialize TranslatableComponent

* Rewrite TextComponent Serializer

* Fix using TextColor::Parse

* Code Cleanup

* Add default attribute, just in case

* Clippy

* use serde derive feature + preferred formatting choices

Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
Co-authored-by: mat <github@matdoes.dev>
2022-12-03 19:08:05 -06:00
mat
661c3622be make the packets in events be Arc
so they're cheap to clone
2022-12-03 01:22:34 -06:00
mat
8fd88aeae8
fix doc yaml 2022-11-29 18:57:27 -06:00
Матвей Т
8e482b4588
Uploaded doc workflow (#46)
* Uploaded doc workflow

* Update .github/workflows/doc.yml

Fair

Co-authored-by: mat <27899617+mat-1@users.noreply.github.com>

Co-authored-by: mat <27899617+mat-1@users.noreply.github.com>
2022-11-29 12:59:36 -06:00
mat
36a1122010 fix some docs/examples 2022-11-27 17:51:50 -06:00
mat
1a2178959d tell the user what email they're using in auth 2022-11-27 16:29:30 -06:00
mat
631ed63dbd
Swarm (#36)
* make azalea-pathfinder dir

* start writing d* lite impl

* more work on d* lite

* work more on implementing d* lite

* full d* lite impl

* updated edges

* add next() function

* add NoPathError

* why does dstar lite not work

* fix d* lite implementation

* make the test actually check the coords

* replace while loop with if statement

* fix clippy complaints

* make W only have to be PartialOrd

* fix PartialOrd issues

* implement mtd* lite

* add a test to mtd* lite

* remove normal d* lite

* make heuristic only take in one arg

* add `success` function

* Update README.md

* evil black magic to make .entity not need dimension

* start adding moves

* slightly improve the vec3/position situation

new macro that implements all the useful functions

* moves stuff

* make it compile

* update deps in az-pathfinder

* make it compile again

* more pathfinding stuff

* add Bot::look_at

* replace EntityMut and EntityRef with just Entity

* block pos pathfinding stuff

* rename movedirection to walkdirection

* execute path every tick

* advance path

* change az-pf version

* make azalea_client keep plugin state

* fix Plugins::get

* why does it think there is air

* start debugging incorrect air

* update some From methods to use rem_euclid

* start adding swarm

* fix deadlock

i still don't understand why it was happening but the solution was to keep the Client::player lock for shorter so it didn't overlap with the Client::dimension lock

* make lookat actually work probably

* fix going too fast

* Update main.rs

* make a thing immutable

* direction_looking_at

* fix rotations

* import swarm in an example

* fix stuff from merge

* remove azalea_pathfinder import

* delete azalea-pathfinder crate

already in azalea::pathfinder module

* swarms

* start working on shared dimensions

* Shared worlds work

* start adding Swarm::add_account

* add_account works

* change "client" to "bot" in some places

* Fix issues from merge

* Update world.rs

* add SwarmEvent::Disconnect(Account)

* almost add SwarmEvent::Chat and new plugin system

it panics rn

* make plugins have to provide the State associated type

* improve comments

* make fn build slightly cleaner

* fix SwarmEvent::Chat

* change a println in bot/main.rs

* Client::shutdown -> disconnect

* polish

fix clippy warnings + improve some docs a bit

* fix shared worlds*

*there's a bug that entities and bots will have their positions exaggerated because the relative movement packet is applied for every entity once per bot

* i am being trolled by rust

for some reason some stuff is really slow for literally no reason and it makes no sense i am going insane

* make world an RwLock again

* remove debug messages

* fix skipping event ticks

unfortunately now sending events is `.send().await?` instead of just `.send()`

* fix deadlock + warnings

* turns out my floor_mod impl was wrong

and i32::rem_euclid has the correct behavior LOL

* still errors with lots of bots

* make swarm iter & fix new chunks not loading

* improve docs

* start fixing tests

* fix all the tests

except the examples i don't know how to exclude them from the tests

* improve docs some more
2022-11-27 16:25:07 -06:00
Honbra
962b9fcaae
Fix ServerboundContainerClickPacket (#45) 2022-11-27 16:24:31 -06:00
Ryan
087e056bbc
feat: PlayerCombatKill client event (#44)
* feat: PlayerCombatKill client event

* Event name changed to Death

* dead client state and respawn packet

* fix doc comment
2022-11-21 23:20:09 -06:00
mat
6dfce515bd ok shutdown doesn't actually have to consume client 2022-11-21 14:17:13 -06:00
mat
0b9d7dff03 improve shutdowns 2022-11-21 14:10:37 -06:00
mat
3ad32806dc Update README.md 2022-11-19 16:32:49 -06:00
mat
5a8f50950a chore: Release 2022-11-19 15:25:55 -06:00
mat
619984fa33
Replace lazy_static with once_cell::sync::Lazy (#43)
* Remove lazy_static in azalea-chat

* replace lazy_static with once_cell everywhere

* fix

* fix import

* ignore a clippy warning in shape codegen
2022-11-19 15:21:54 -06:00
mat
befa22c1f3
Player List (#41)
* keep track of player list

* send player update events
2022-11-18 22:11:30 -06:00
mat
6c6eb5572b clippy + replace some printlns with debug 2022-11-18 22:10:34 -06:00
mat
7ad4b22726
Add functions to get ChatPacket author and content (#42)
* Add functions to get ChatPacket author and content

* add ChatPacket::username and ChatPacket::content
2022-11-18 21:52:09 -06:00
mat
ad6da947cd
Create FUNDING.yml 2022-11-18 19:29:04 -06:00
Ubuntu
00bfcde391 move some stuff to the azalea_client::chat mod 2022-11-17 17:42:30 +00:00
mat
0d004b72ac
Rename "dimension" to "world" (#39)
* rename "dimension" to "world"

* Update mod.rs
2022-11-15 14:52:26 -06:00
Ubuntu
b9da6f7475 rephrase that 2022-11-15 20:45:03 +00:00
Ubuntu
709c5dbc19 add Client::metadata 2022-11-15 20:44:33 +00:00
Ubuntu
614c0df053 clippy 2022-11-15 20:38:32 +00:00
Honbra
9f78b3f4a7
Military-grade server implementation (#40)
* Military-grade server implementation

* Add doc comments
2022-11-14 13:25:59 -06:00
mat
6eee543a33
Pathfinder (#25)
Pathfinding is very much not done, but it works enough and I want to get this merged.
TODO: fast replanning, goals that aren't a single node, falling moves (it should be able to play the dropper), parkour moves
2022-11-12 23:54:05 -06:00
mat
fa57d03627 Update Cargo.lock 2022-11-12 12:15:24 -06:00
mat
16d0cb734c change some dependencies 2022-11-11 23:10:38 -06:00
mat
d235349229 add more to optimization docs 2022-11-11 22:16:39 -06:00
mat
e6db7d5f2f add optimization stuff to azalea docs 2022-11-11 21:55:47 -06:00
Ubuntu
3530faea4e Merge branch 'main' of https://github.com/mat-1/azalea into main 2022-11-12 02:04:15 +00:00
mat
981105b2c0 fix docs 2022-11-11 20:01:54 -06:00
mat
9e09df1837 make some stuff in azalea-protocol public 2022-11-11 19:24:45 -06:00
mat
1df4f9f477 fix example in azalea_protocol::connect 2022-11-11 19:05:00 -06:00
Ubuntu
4a1ec068fc improved docs 2022-11-11 21:04:18 +00:00