// Path: src/main/java/com/techjar/vivecraftforge/util/VivecraftForgeLog.java
// public class VivecraftForgeLog {
// 	public static void info(String message, Object... data) {
// 		FMLRelaunchLog.log("Vivecraft Forge Extensions", Level.INFO, message, data);
// 	}
// 
// 	public static void warning(String message, Object... data) {
// 		FMLRelaunchLog.log("Vivecraft Forge Extensions", Level.WARN, message, data);
// 	}
// 
// 	public static void severe(String message, Object... data) {
// 		FMLRelaunchLog.log("Vivecraft Forge Extensions", Level.ERROR, message, data);
// 	}
// 
// 	public static void debug(String message, Object... data) {
// 		FMLRelaunchLog.log("Vivecraft Forge Extensions", Level.DEBUG, message, data);
// 	}
// }


import com.techjar.vivecraftforge.util.VivecraftForgeLog;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.relauncher.Side;
package com.techjar.vivecraftforge.network;


@Sharable
public class PacketHandlerClient extends SimpleChannelInboundHandler<IPacket> {
	@Override
	protected void channelRead0(ChannelHandlerContext ctx, IPacket msg) throws Exception {
		if (ctx.channel().attr(NetworkRegistry.CHANNEL_SOURCE).get() != Side.CLIENT) return;
// Path: src/main/java/com/techjar/vivecraftforge/util/VivecraftForgeLog.java
// public class VivecraftForgeLog {
// 	public static void info(String message, Object... data) {
// 		FMLRelaunchLog.log("Vivecraft Forge Extensions", Level.INFO, message, data);
// 	}
// 
// 	public static void warning(String message, Object... data) {
// 		FMLRelaunchLog.log("Vivecraft Forge Extensions", Level.WARN, message, data);
// 	}
// 
// 	public static void severe(String message, Object... data) {
// 		FMLRelaunchLog.log("Vivecraft Forge Extensions", Level.ERROR, message, data);
// 	}
// 
// 	public static void debug(String message, Object... data) {
// 		FMLRelaunchLog.log("Vivecraft Forge Extensions", Level.DEBUG, message, data);
// 	}
// }


// Path: src/main/java/com/techjar/vivecraftforge/network/PacketHandlerClient.java
import com.techjar.vivecraftforge.util.VivecraftForgeLog;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.relauncher.Side;

package com.techjar.vivecraftforge.network;


@Sharable
public class PacketHandlerClient extends SimpleChannelInboundHandler<IPacket> {
	@Override
	protected void channelRead0(ChannelHandlerContext ctx, IPacket msg) throws Exception {
		if (ctx.channel().attr(NetworkRegistry.CHANNEL_SOURCE).get() != Side.CLIENT) return;
		VivecraftForgeLog.warning("Should never receive a client packet!");