quilt-standard-libraries icon indicating copy to clipboard operation
quilt-standard-libraries copied to clipboard

Entity Tick Events

Open williambl opened this issue 3 years ago • 2 comments

Motivation

Sometimes you want to do something on tick per-entity. Done manually, this involves two mixins, as there are two different code paths for ticking depending on whether the entity is on a vehicle. These events make this far easier.

Content

ServerEntityTickCallback, ClientEntityTickCallback. Also fixes some javadoc in EntityReviveEvents.

Tests

Adds a test for both new events, in the entity events testmod. Zombies will fly in the rain, or place raw iron above them if they're riding something. Slimes constantly emit explosion particles, unless they're riding something.

williambl avatar Oct 09 '22 13:10 williambl

:thinking: I was sure I had properly rebased this onto 1.19... I'll redo this in a bit

williambl avatar Oct 09 '22 16:10 williambl

Javadoc things fixed.

williambl avatar Oct 11 '22 12:10 williambl

I'm fast-tracking this FCP to Monday (05/12)

EnnuiL avatar Dec 04 '22 04:12 EnnuiL