package net.minecraft.network.protocol.game;

import com.mojang.logging.LogUtils;
import net.minecraft.ReportedException;
import net.minecraft.network.ServerboundPacketListener;
import net.minecraft.network.protocol.Packet;
import org.slf4j.Logger;

public interface ServerPacketListener extends ServerboundPacketListener {
    Logger LOGGER = LogUtils.getLogger();

    @Override
    default void onPacketError(Packet packet, Exception exception) throws ReportedException {
        LOGGER.error("Failed to handle packet {}, suppressing error", packet, exception);
    }
}
