From 67498b6aa3b196bec517948431940228cbd96b97 Mon Sep 17 00:00:00 2001 From: basaigh <53559772+basaigh@users.noreply.github.com> Date: Sun, 13 Aug 2023 17:15:40 +0100 Subject: [PATCH] Add and remove some level events --- .../protocol/data/game/level/event/LevelEventType.java | 10 +++------- .../clientbound/level/ClientboundLevelEventPacket.java | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/game/level/event/LevelEventType.java b/src/main/java/com/github/steveice10/mc/protocol/data/game/level/event/LevelEventType.java index 1971208f6..f68067d14 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/game/level/event/LevelEventType.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/game/level/event/LevelEventType.java @@ -10,10 +10,6 @@ public enum LevelEventType implements LevelEvent { BLOCK_DISPENSER_LAUNCH(1002), ENTITY_ENDEREYE_LAUNCH(1003), ENTITY_FIREWORK_SHOOT(1004), - BLOCK_IRON_DOOR_OPEN(1005), - BLOCK_WOODEN_DOOR_OPEN(1006), - BLOCK_WOODEN_TRAPDOOR_OPEN(1007), - BLOCK_FENCE_GATE_OPEN(1008), BLOCK_FIRE_EXTINGUISH(1009), RECORD(1010), STOP_RECORD(1011), // As of 1.19.4 @@ -38,8 +34,6 @@ public enum LevelEventType implements LevelEvent { BLOCK_CHORUS_FLOWER_GROW(1033), BLOCK_CHORUS_FLOWER_DEATH(1034), BLOCK_BREWING_STAND_BREW(1035), - BLOCK_IRON_TRAPDOOR_CLOSE(1036), - BLOCK_IRON_TRAPDOOR_OPEN(1037), BLOCK_END_PORTAL_SPAWN(1038), // Global level event ENTITY_PHANTOM_BITE(1039), ENTITY_ZOMBIE_CONVERTED_TO_DROWNED(1040), @@ -77,7 +71,9 @@ public enum LevelEventType implements LevelEvent { WAX_OFF(3004), SCRAPE(3005), SCULK_BLOCK_CHARGE(3006), - SCULK_SHRIEKER_SHRIEK(3007); + SCULK_SHRIEKER_SHRIEK(3007), + BRUSH_BLOCK_COMPLETE(3008), + EGG_CRACK(3009); private final int id; diff --git a/src/main/java/com/github/steveice10/mc/protocol/packet/ingame/clientbound/level/ClientboundLevelEventPacket.java b/src/main/java/com/github/steveice10/mc/protocol/packet/ingame/clientbound/level/ClientboundLevelEventPacket.java index 55105e8b0..bdf46fae8 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/packet/ingame/clientbound/level/ClientboundLevelEventPacket.java +++ b/src/main/java/com/github/steveice10/mc/protocol/packet/ingame/clientbound/level/ClientboundLevelEventPacket.java @@ -43,6 +43,7 @@ public ClientboundLevelEventPacket(ByteBuf in, MinecraftCodecHelper helper) { this.data = new SmokeEventData(Direction.from(Math.abs(value % 6))); break; case BREAK_BLOCK: + case BRUSH_BLOCK_COMPLETE: this.data = new BreakBlockEventData(value); break; case BREAK_SPLASH_POTION: