    001/*
    002 * Forge Mod Loader
    003 * Copyright (c) 2012-2013 cpw.
    004 * All rights reserved. This program and the accompanying materials
    005 * are made available under the terms of the GNU Lesser Public License v2.1
    006 * which accompanies this distribution, and is available at
    007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    008 *
    009 * Contributors:
    010 *     cpw - implementation
    011 */
    012
    013package cpw.mods.fml.common.modloader;
    014
    015import net.minecraft.entity.Entity;
    016import net.minecraft.entity.player.EntityPlayer;
    017import net.minecraft.network.INetworkManager;
    018import net.minecraft.network.packet.NetHandler;
    019import net.minecraft.network.packet.Packet250CustomPayload;
    020import cpw.mods.fml.common.network.EntitySpawnPacket;
    021import cpw.mods.fml.common.registry.EntityRegistry.EntityRegistration;
    022
    023public interface IModLoaderSidedHelper
    024{
    025
    026    void finishModLoading(ModLoaderModContainer mc);
    027
    028    Object getClientGui(BaseModProxy mod, EntityPlayer player, int iD, int x, int y, int z);
    029
    030    Entity spawnEntity(BaseModProxy mod, EntitySpawnPacket input, EntityRegistration registration);
    031
    032    void sendClientPacket(BaseModProxy mod, Packet250CustomPayload packet);
    033
    034    void clientConnectionOpened(NetHandler netClientHandler, INetworkManager manager, BaseModProxy mod);
    035
    036    boolean clientConnectionClosed(INetworkManager manager, BaseModProxy mod);
    037
    038}