// Path: src/main/java/com/zalthonethree/zombieinfection/handler/PacketHandler.java
// public enum PacketHandler {
// 	INSTANCE;
// 	
// 	private EnumMap<Side, FMLEmbeddedChannel> channels;
// 	
// 	private PacketHandler() {
// 		this.channels = NetworkRegistry.INSTANCE.newChannel("ZombieInfection", new ZombieInfectionCodec());
// 		if (Utilities.isClientSide()) addClientHandler();
// 		if (Utilities.isServerSide()) addServerHandler();
// 	}
// 	
// 	@SideOnly(Side.CLIENT) private void addClientHandler() {
// 		FMLEmbeddedChannel clientChannel = this.channels.get(Side.CLIENT);
// 		
// 		String codecName = clientChannel.findChannelHandlerNameForType(ZombieInfectionCodec.class);
// 		clientChannel.pipeline().addAfter(codecName, "ZITimeInfectedHandler", new ZITimeInfectedMessageHandler());
// 	}
// 	
// 	@SideOnly(Side.SERVER) private void addServerHandler() {
// 		// FMLEmbeddedChannel serverChannel = this.channels.get(Side.SERVER);
// 		
// 		// String codecName = serverChannel.findChannelHandlerNameForType(ZombieInfectionCodec.class);
// 		// Add any messages that the server gets from the client. Shouldn't really be needed. Uncomment lines above if this is needed.
// 	}
// 	
// 	@SuppressWarnings("unchecked") public static Packet<INetHandlerPlayClient> getTimeInfectedUpdatePacket(int Seconds) {
// 		ZITimeInfectedMessage msg = new ZITimeInfectedMessage();
// 		msg.index = 0;
// 		msg.secondsInfected = Seconds;
// 		
// 		return (Packet<INetHandlerPlayClient>) INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
// 	}
// 	
// 	@SuppressWarnings("unchecked") public static Packet<INetHandlerPlayClient> getFoodChangePacket(int food, float saturation) {
// 		ZIFoodChangeMessage msg = new ZIFoodChangeMessage();
// 		msg.index = 1;
// 		msg.foodLevelChange = food;
// 		msg.saturationChange = saturation;
// 		
// 		return (Packet<INetHandlerPlayClient>) INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
// 	}
// 	
// 	public void sendTo(Packet<?> message, EntityPlayerMP player) {
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.PLAYER);
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(player);
// 		this.channels.get(Side.SERVER).writeAndFlush(message);
// 	}
// 	
// 	public void sendToAll(Packet<?> message) {
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.ALL);
// 		this.channels.get(Side.SERVER).writeAndFlush(message);
// 	}
// 	
// 	public void sendToAllAround(Packet<?> message, NetworkRegistry.TargetPoint point) {
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.ALLAROUNDPOINT);
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(point);
// 		this.channels.get(Side.SERVER).writeAndFlush(message);
// 	}
// 	
// 	public void sendToServer(Packet<?> message) {
// 		this.channels.get(Side.CLIENT).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.TOSERVER);
// 		this.channels.get(Side.CLIENT).writeAndFlush(message).addListener(ChannelFutureListener.FIRE_EXCEPTION_ON_FAILURE);
// 	}
// }


import com.zalthonethree.zombieinfection.handler.PacketHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
package com.zalthonethree.zombieinfection.utility;



public class TimeInfectedTracking {
	public static void update(EntityPlayer player) {
		if (!player.getEntityData().hasKey("TimeInfectedTracking")) {
// Path: src/main/java/com/zalthonethree/zombieinfection/handler/PacketHandler.java
// public enum PacketHandler {
// 	INSTANCE;
// 	
// 	private EnumMap<Side, FMLEmbeddedChannel> channels;
// 	
// 	private PacketHandler() {
// 		this.channels = NetworkRegistry.INSTANCE.newChannel("ZombieInfection", new ZombieInfectionCodec());
// 		if (Utilities.isClientSide()) addClientHandler();
// 		if (Utilities.isServerSide()) addServerHandler();
// 	}
// 	
// 	@SideOnly(Side.CLIENT) private void addClientHandler() {
// 		FMLEmbeddedChannel clientChannel = this.channels.get(Side.CLIENT);
// 		
// 		String codecName = clientChannel.findChannelHandlerNameForType(ZombieInfectionCodec.class);
// 		clientChannel.pipeline().addAfter(codecName, "ZITimeInfectedHandler", new ZITimeInfectedMessageHandler());
// 	}
// 	
// 	@SideOnly(Side.SERVER) private void addServerHandler() {
// 		// FMLEmbeddedChannel serverChannel = this.channels.get(Side.SERVER);
// 		
// 		// String codecName = serverChannel.findChannelHandlerNameForType(ZombieInfectionCodec.class);
// 		// Add any messages that the server gets from the client. Shouldn't really be needed. Uncomment lines above if this is needed.
// 	}
// 	
// 	@SuppressWarnings("unchecked") public static Packet<INetHandlerPlayClient> getTimeInfectedUpdatePacket(int Seconds) {
// 		ZITimeInfectedMessage msg = new ZITimeInfectedMessage();
// 		msg.index = 0;
// 		msg.secondsInfected = Seconds;
// 		
// 		return (Packet<INetHandlerPlayClient>) INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
// 	}
// 	
// 	@SuppressWarnings("unchecked") public static Packet<INetHandlerPlayClient> getFoodChangePacket(int food, float saturation) {
// 		ZIFoodChangeMessage msg = new ZIFoodChangeMessage();
// 		msg.index = 1;
// 		msg.foodLevelChange = food;
// 		msg.saturationChange = saturation;
// 		
// 		return (Packet<INetHandlerPlayClient>) INSTANCE.channels.get(Side.SERVER).generatePacketFrom(msg);
// 	}
// 	
// 	public void sendTo(Packet<?> message, EntityPlayerMP player) {
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.PLAYER);
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(player);
// 		this.channels.get(Side.SERVER).writeAndFlush(message);
// 	}
// 	
// 	public void sendToAll(Packet<?> message) {
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.ALL);
// 		this.channels.get(Side.SERVER).writeAndFlush(message);
// 	}
// 	
// 	public void sendToAllAround(Packet<?> message, NetworkRegistry.TargetPoint point) {
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.ALLAROUNDPOINT);
// 		this.channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(point);
// 		this.channels.get(Side.SERVER).writeAndFlush(message);
// 	}
// 	
// 	public void sendToServer(Packet<?> message) {
// 		this.channels.get(Side.CLIENT).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.TOSERVER);
// 		this.channels.get(Side.CLIENT).writeAndFlush(message).addListener(ChannelFutureListener.FIRE_EXCEPTION_ON_FAILURE);
// 	}
// }


// Path: src/main/java/com/zalthonethree/zombieinfection/utility/TimeInfectedTracking.java
import com.zalthonethree.zombieinfection.handler.PacketHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;

package com.zalthonethree.zombieinfection.utility;



public class TimeInfectedTracking {
	public static void update(EntityPlayer player) {
		if (!player.getEntityData().hasKey("TimeInfectedTracking")) {
			player.getEntityData().setInteger("TimeInfectedTracking", 0);