Sparky983 / diorite

A Minecraft Java client and protocol library
Apache License 2.0
2 stars 0 forks source link

Movement #1

Closed GodModed closed 1 year ago

GodModed commented 2 years ago

Add movement

Sparky983 commented 2 years ago

I'm currently thinking about how I could implement a clean, fluent API for such a thing.

Maybe you could chain a bunch of movement methods that would execute 1 by 1 every tick until no more are left.

DioriteClient client = ...;

client.move()
        .by(Vector.of(1, 1, 1)) // relative
        .to(Position.of(10, 10, 10))  // absolute
        .start() // start moving
        .block() // block until movement is finished

Any other ideas or feedback?

GodModed commented 2 years ago

Fax

GodModed commented 1 year ago

Any updates?

Sparky983 commented 1 year ago

Any updates?

No, I haven't been doing much on here lately. If you would like to make a PR, I'd still review that though.

GodModed commented 1 year ago

I will not be making a pull request.