Skip to content

Commit 096d683

Browse files
authored
Add Player Info to the handler (#7)
1 parent c7a4a5f commit 096d683

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/net/hypixel/modapi/handler/ClientboundPacketHandler.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import net.hypixel.modapi.packet.impl.clientbound.ClientboundLocationPacket;
55
import net.hypixel.modapi.packet.impl.clientbound.ClientboundPartyInfoPacket;
66
import net.hypixel.modapi.packet.impl.clientbound.ClientboundPingPacket;
7+
import net.hypixel.modapi.packet.impl.clientbound.ClientboundPlayerInfoPacket;
78

89
public interface ClientboundPacketHandler extends PacketHandler {
910

@@ -19,6 +20,10 @@ default void handle(HypixelPacket packet) {
1920
if (packet instanceof ClientboundPartyInfoPacket) {
2021
onPartyInfoPacket((ClientboundPartyInfoPacket) packet);
2122
}
23+
24+
if (packet instanceof ClientboundPlayerInfoPacket) {
25+
onPlayerInfoPacket((ClientboundPlayerInfoPacket) packet);
26+
}
2227
}
2328

2429
default void onPingPacket(ClientboundPingPacket packet) {
@@ -30,4 +35,6 @@ default void onLocationPacket(ClientboundLocationPacket packet) {
3035
default void onPartyInfoPacket(ClientboundPartyInfoPacket packet) {
3136
}
3237

38+
default void onPlayerInfoPacket(ClientboundPlayerInfoPacket packet) {
39+
}
3340
}

0 commit comments

Comments
 (0)