File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/java/net/hypixel/modapi/handler Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 4
4
import net .hypixel .modapi .packet .impl .clientbound .ClientboundLocationPacket ;
5
5
import net .hypixel .modapi .packet .impl .clientbound .ClientboundPartyInfoPacket ;
6
6
import net .hypixel .modapi .packet .impl .clientbound .ClientboundPingPacket ;
7
+ import net .hypixel .modapi .packet .impl .clientbound .ClientboundPlayerInfoPacket ;
7
8
8
9
public interface ClientboundPacketHandler extends PacketHandler {
9
10
@@ -19,6 +20,10 @@ default void handle(HypixelPacket packet) {
19
20
if (packet instanceof ClientboundPartyInfoPacket ) {
20
21
onPartyInfoPacket ((ClientboundPartyInfoPacket ) packet );
21
22
}
23
+
24
+ if (packet instanceof ClientboundPlayerInfoPacket ) {
25
+ onPlayerInfoPacket ((ClientboundPlayerInfoPacket ) packet );
26
+ }
22
27
}
23
28
24
29
default void onPingPacket (ClientboundPingPacket packet ) {
@@ -30,4 +35,6 @@ default void onLocationPacket(ClientboundLocationPacket packet) {
30
35
default void onPartyInfoPacket (ClientboundPartyInfoPacket packet ) {
31
36
}
32
37
38
+ default void onPlayerInfoPacket (ClientboundPlayerInfoPacket packet ) {
39
+ }
33
40
}
You can’t perform that action at this time.
0 commit comments