Skip to content

Commit

Permalink
Add and remove some level events
Browse files Browse the repository at this point in the history
  • Loading branch information
basaigh committed Aug 13, 2023
1 parent bfb6430 commit 67498b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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),
Expand Down Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 67498b6

Please sign in to comment.