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; 014 015import java.util.List; 016 017import com.google.common.collect.MapDifference; 018 019import net.minecraft.entity.Entity; 020import net.minecraft.network.INetworkManager; 021import net.minecraft.network.packet.NetHandler; 022import net.minecraft.network.packet.Packet; 023import net.minecraft.network.packet.Packet131MapData; 024import net.minecraft.server.MinecraftServer; 025import cpw.mods.fml.common.network.EntitySpawnAdjustmentPacket; 026import cpw.mods.fml.common.network.EntitySpawnPacket; 027import cpw.mods.fml.common.network.ModMissingPacket; 028import cpw.mods.fml.common.registry.ItemData; 029import cpw.mods.fml.common.registry.EntityRegistry.EntityRegistration; 030import cpw.mods.fml.relauncher.Side; 031 032public interface IFMLSidedHandler 033{ 034 List<String> getAdditionalBrandingInformation(); 035 036 Side getSide(); 037 038 void haltGame(String message, Throwable exception); 039 040 void showGuiScreen(Object clientGuiElement); 041 042 Entity spawnEntityIntoClientWorld(EntityRegistration registration, EntitySpawnPacket packet); 043 044 void adjustEntityLocationOnClient(EntitySpawnAdjustmentPacket entitySpawnAdjustmentPacket); 045 046 void beginServerLoading(MinecraftServer server); 047 048 void finishServerLoading(); 049 050 MinecraftServer getServer(); 051 052 void sendPacket(Packet packet); 053 054 void displayMissingMods(ModMissingPacket modMissingPacket); 055 056 void handleTinyPacket(NetHandler handler, Packet131MapData mapData); 057 058 void setClientCompatibilityLevel(byte compatibilityLevel); 059 060 byte getClientCompatibilityLevel(); 061 062 boolean shouldServerShouldBeKilledQuietly(); 063 064 void disconnectIDMismatch(MapDifference<Integer, ItemData> s, NetHandler toKill, INetworkManager mgr); 065}