Skip to content

Commit 3f57718

Browse files
committed
chore: Initial support by adding all packet id changes.
1 parent 95e773d commit 3f57718

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<p align="center">
88
<a target="_blank"><img src="https://github.com/CatCoderr/ProtocolSidebar/actions/workflows/build.yaml/badge.svg" alt="Build" /></a>
99
<a target="_blank"><img src="https://img.shields.io/github/license/CatCoderr/ProtocolSidebar" alt="License" /></a>
10-
<a target="_blank"><img src="https://img.shields.io/badge/Minecraft%20Versions-1.12.2--1.21.10-blue?style=flat" alt="Minecraft Versions" /></a>
10+
<a target="_blank"><img src="https://img.shields.io/badge/Minecraft%20Versions-1.12.2--26.1-blue?style=flat" alt="Minecraft Versions" /></a>
1111
</p>
1212

1313
* [Features](#features)

src/main/java/me/catcoder/sidebar/protocol/PacketIds.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public enum PacketIds {
2222
map(ProtocolConstants.MINECRAFT_1_20_6, 0x60),
2323
map(ProtocolConstants.MINECRAFT_1_21_2, 0x67),
2424
map(ProtocolConstants.MINECRAFT_1_21_5, 0x66),
25-
map(ProtocolConstants.MINECRAFT_1_21_11, 0x6B)
25+
map(ProtocolConstants.MINECRAFT_1_21_11, 0x6B),
26+
map(ProtocolConstants.MINECRAFT_26_1, 0x6D)
2627
),
2728
UPDATE_SCORE(
2829
map(ProtocolConstants.MINECRAFT_1_12_2, 0x45),
@@ -38,14 +39,16 @@ public enum PacketIds {
3839
map(ProtocolConstants.MINECRAFT_1_20_6, 0x61),
3940
map(ProtocolConstants.MINECRAFT_1_21_2, 0x68),
4041
map(ProtocolConstants.MINECRAFT_1_21_5, 0x67),
41-
map(ProtocolConstants.MINECRAFT_1_21_11, 0x6C)
42+
map(ProtocolConstants.MINECRAFT_1_21_11, 0x6C),
43+
map(ProtocolConstants.MINECRAFT_26_1, 0x6E)
4244
),
4345
RESET_SCORE(
4446
map(ProtocolConstants.MINECRAFT_1_20_3, 0x42),
4547
map(ProtocolConstants.MINECRAFT_1_20_4, 0x44),
4648
map(ProtocolConstants.MINECRAFT_1_21_2, 0x49),
4749
map(ProtocolConstants.MINECRAFT_1_21_5, 0x48),
48-
map(ProtocolConstants.MINECRAFT_1_21_11, 0x4D)
50+
map(ProtocolConstants.MINECRAFT_1_21_11, 0x4D),
51+
map(ProtocolConstants.MINECRAFT_26_1, 0x4F)
4952
),
5053
OBJECTIVE_DISPLAY(
5154
map(ProtocolConstants.MINECRAFT_1_12_2, 0x3B),
@@ -61,7 +64,8 @@ public enum PacketIds {
6164
map(ProtocolConstants.MINECRAFT_1_20_6, 0x57),
6265
map(ProtocolConstants.MINECRAFT_1_21_2, 0x5C),
6366
map(ProtocolConstants.MINECRAFT_1_21_5, 0x5B),
64-
map(ProtocolConstants.MINECRAFT_1_21_11, 0x60)
67+
map(ProtocolConstants.MINECRAFT_1_21_11, 0x60),
68+
map(ProtocolConstants.MINECRAFT_26_1, 0x62)
6569

6670
),
6771
OBJECTIVE(
@@ -78,7 +82,8 @@ public enum PacketIds {
7882
map(ProtocolConstants.MINECRAFT_1_20_6, 0x5E),
7983
map(ProtocolConstants.MINECRAFT_1_21_2, 0x64),
8084
map(ProtocolConstants.MINECRAFT_1_21_5, 0x63),
81-
map(ProtocolConstants.MINECRAFT_1_21_11, 0x68)
85+
map(ProtocolConstants.MINECRAFT_1_21_11, 0x68),
86+
map(ProtocolConstants.MINECRAFT_26_1, 0x6A)
8287
);
8388

8489
private final ProtocolConstants.ProtocolMapping[] mappings;

src/main/java/me/catcoder/sidebar/protocol/ProtocolConstants.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ public class ProtocolConstants {
6464

6565
public static final int MINECRAFT_1_21_11 = 774;
6666

67+
public static final int MINECRAFT_26_1 = 775;
68+
6769
public static final int MINIMUM_SUPPORTED_VERSION = MINECRAFT_1_12_2;
68-
public static final int MAXIMUM_SUPPORTED_VERSION = MINECRAFT_1_21_11;
70+
public static final int MAXIMUM_SUPPORTED_VERSION = MINECRAFT_26_1;
6971

7072
@Getter
7173
@RequiredArgsConstructor

0 commit comments

Comments
 (0)