public class FMLNetworkHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.EnumMap<Side,FMLEmbeddedChannel> |
channelPair |
static int |
LOGIN_TIMEOUT |
static int |
READ_TIMEOUT |
Constructor and Description |
---|
FMLNetworkHandler() |
Modifier and Type | Method and Description |
---|---|
private static void |
addClientHandlers() |
static java.lang.String |
checkModList(FMLHandshakeMessage.ModList modListPacket,
Side side) |
static java.lang.String |
checkModList(java.util.Map<java.lang.String,java.lang.String> listData,
Side side) |
static void |
enhanceStatusQuery(com.google.gson.JsonObject jsonobject) |
static void |
fmlClientHandshake(NetworkManager networkManager) |
static void |
fmlServerHandshake(PlayerList scm,
NetworkManager manager,
EntityPlayerMP player) |
static java.util.List<FMLProxyPacket> |
forwardHandshake(FMLMessage.CompleteHandshake push,
NetworkDispatcher target,
Side side) |
static Packet<?> |
getEntitySpawningPacket(Entity entity) |
static void |
openGui(EntityPlayer entityPlayer,
java.lang.Object mod,
int modGuiId,
World world,
int x,
int y,
int z) |
static void |
registerChannel(FMLContainer container,
Side side) |
public static final int READ_TIMEOUT
public static final int LOGIN_TIMEOUT
private static java.util.EnumMap<Side,FMLEmbeddedChannel> channelPair
public static void fmlServerHandshake(PlayerList scm, NetworkManager manager, EntityPlayerMP player)
public static void fmlClientHandshake(NetworkManager networkManager)
public static void openGui(EntityPlayer entityPlayer, java.lang.Object mod, int modGuiId, World world, int x, int y, int z)
@Nullable public static java.lang.String checkModList(FMLHandshakeMessage.ModList modListPacket, Side side)
@Nullable public static java.lang.String checkModList(java.util.Map<java.lang.String,java.lang.String> listData, Side side)
listData
- map of modId string to version string, represents the mods available on the given sideside
- the side that listData is coming from, either client or serverprivate static void addClientHandlers()
public static void registerChannel(FMLContainer container, Side side)
public static java.util.List<FMLProxyPacket> forwardHandshake(FMLMessage.CompleteHandshake push, NetworkDispatcher target, Side side)
public static void enhanceStatusQuery(com.google.gson.JsonObject jsonobject)