Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.hypixel.modapi.packet.impl.clientbound.ClientboundLocationPacket;
import net.hypixel.modapi.packet.impl.clientbound.ClientboundPartyInfoPacket;
import net.hypixel.modapi.packet.impl.clientbound.ClientboundPingPacket;
import net.hypixel.modapi.packet.impl.clientbound.ClientboundPlayerInfoPacket;

public interface ClientboundPacketHandler extends PacketHandler {

Expand All @@ -19,6 +20,10 @@ default void handle(HypixelPacket packet) {
if (packet instanceof ClientboundPartyInfoPacket) {
onPartyInfoPacket((ClientboundPartyInfoPacket) packet);
}

if (packet instanceof ClientboundPlayerInfoPacket) {
onPlayerInfoPacket((ClientboundPlayerInfoPacket) packet);
}
}

default void onPingPacket(ClientboundPingPacket packet) {
Expand All @@ -30,4 +35,6 @@ default void onLocationPacket(ClientboundLocationPacket packet) {
default void onPartyInfoPacket(ClientboundPartyInfoPacket packet) {
}

default void onPlayerInfoPacket(ClientboundPlayerInfoPacket packet) {
}
}