package net.techcable.npclib.nms.versions.v1_8_R2.network;

import java.lang.reflect.Field;

import net.minecraft.server.v1_8_R2.EnumProtocolDirection;
import net.minecraft.server.v1_8_R2.NetworkManager;
import net.techcable.npclib.util.ReflectUtil;
import lombok.*;

@Getter
public class NPCNetworkManager extends NetworkManager {

	public NPCNetworkManager() {
		super(EnumProtocolDirection.CLIENTBOUND); //MCP = isClientSide ---- SRG=field_150747_h
		Field channel = ReflectUtil.makeField(NetworkManager.class, "i"); //MCP = channel ---- SRG=field_150746_k
		Field address = ReflectUtil.makeField(NetworkManager.class, "j"); //MCP = address ---- SRG=field_77527_e
		
		ReflectUtil.setField(channel, this, new NullChannel());
		ReflectUtil.setField(address, this, new NullSocketAddress());
		
	}

}

@@ -508,17 +508,17 @@
 class, %22
-i
+k
 %22); //MC
@@ -616,17 +616,17 @@
 class, %22
-j
+l
 %22); //MC

Version 1.8.3 changed the channel and address fields in NetworkManager