Update to 20w17a

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-05-03 01:40:32 +08:00
parent 2c21eeeaf7
commit 413f80de6a
16 changed files with 82 additions and 97 deletions

View File

@@ -53,9 +53,9 @@ public interface EntityEvent {
*/
Event<Add> ADD = EventFactory.createInteractionResult();
/**
* Invoked when an entity enters a chunk, equivalent to forge's {@code EnteringChunk}
* Invoked when an entity enters a new section
*/
Event<EnterChunk> ENTER_CHUNK = EventFactory.createLoop();
Event<EnterSection> ENTER_SECTION = EventFactory.createLoop();
interface LivingDeath {
InteractionResult die(LivingEntity entity, DamageSource source);
@@ -73,8 +73,8 @@ public interface EntityEvent {
InteractionResult add(Entity entity, Level world);
}
interface EnterChunk {
void enterChunk(Entity entity, int chunkX, int chunkZ, int prevX, int prevZ);
interface EnterSection {
void enterSection(Entity entity, int sectionX, int sectionY, int sectionZ, int prevX, int prevY, int prevZ);
}
}