2013-03-08 00:25:48 +00:00
|
|
|
/*
|
2016-06-23 03:49:47 +00:00
|
|
|
* Minecraft Forge
|
|
|
|
* Copyright (c) 2016.
|
2013-07-02 05:39:40 +00:00
|
|
|
*
|
2016-06-23 03:49:47 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation version 2.1
|
|
|
|
* of the License.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2013-03-08 00:25:48 +00:00
|
|
|
*/
|
|
|
|
|
2014-09-23 05:01:24 +00:00
|
|
|
package net.minecraftforge.fml.common;
|
2012-04-05 15:34:57 +00:00
|
|
|
|
2014-04-04 23:47:19 +00:00
|
|
|
import java.io.File;
|
2012-06-02 03:07:32 +00:00
|
|
|
import java.util.List;
|
2014-01-17 00:45:42 +00:00
|
|
|
import java.util.Set;
|
2012-04-05 15:34:57 +00:00
|
|
|
|
2013-12-31 14:45:26 +00:00
|
|
|
import net.minecraft.network.INetHandler;
|
2013-12-06 16:17:40 +00:00
|
|
|
import net.minecraft.network.NetworkManager;
|
2012-08-09 13:21:16 +00:00
|
|
|
import net.minecraft.server.MinecraftServer;
|
2014-12-14 01:45:38 +00:00
|
|
|
import net.minecraft.util.IThreadListener;
|
2016-11-29 00:05:41 +00:00
|
|
|
import net.minecraftforge.common.util.CompoundDataFixer;
|
2014-09-23 05:01:24 +00:00
|
|
|
import net.minecraftforge.fml.common.eventhandler.EventBus;
|
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
2012-06-01 02:09:45 +00:00
|
|
|
|
2012-04-05 15:34:57 +00:00
|
|
|
public interface IFMLSidedHandler
|
|
|
|
{
|
2012-06-02 03:07:32 +00:00
|
|
|
List<String> getAdditionalBrandingInformation();
|
2012-07-31 02:31:07 +00:00
|
|
|
|
2012-06-02 19:13:55 +00:00
|
|
|
Side getSide();
|
2012-07-31 02:31:07 +00:00
|
|
|
|
2012-07-04 02:39:35 +00:00
|
|
|
void haltGame(String message, Throwable exception);
|
2012-08-08 04:31:24 +00:00
|
|
|
|
|
|
|
void showGuiScreen(Object clientGuiElement);
|
2012-08-09 05:58:14 +00:00
|
|
|
|
2014-04-01 12:30:47 +00:00
|
|
|
void queryUser(StartupQuery query) throws InterruptedException;
|
|
|
|
|
2012-08-09 13:21:16 +00:00
|
|
|
void beginServerLoading(MinecraftServer server);
|
2012-08-11 15:01:18 +00:00
|
|
|
|
2012-08-09 13:21:16 +00:00
|
|
|
void finishServerLoading();
|
2012-08-11 15:01:18 +00:00
|
|
|
|
2014-04-04 23:47:19 +00:00
|
|
|
File getSavesDirectory();
|
2014-04-01 19:56:53 +00:00
|
|
|
|
2012-08-11 15:01:18 +00:00
|
|
|
MinecraftServer getServer();
|
2012-08-13 02:45:18 +00:00
|
|
|
|
2012-12-07 06:52:16 +00:00
|
|
|
boolean shouldServerShouldBeKilledQuietly();
|
|
|
|
|
2013-07-02 05:39:40 +00:00
|
|
|
void addModAsResource(ModContainer container);
|
2013-07-10 04:42:40 +00:00
|
|
|
|
2013-09-14 00:04:25 +00:00
|
|
|
String getCurrentLanguage();
|
2013-09-20 21:02:56 +00:00
|
|
|
|
|
|
|
void serverStopped();
|
2013-12-06 16:17:40 +00:00
|
|
|
|
|
|
|
NetworkManager getClientToServerNetworkManager();
|
2013-12-31 14:45:26 +00:00
|
|
|
|
|
|
|
INetHandler getClientPlayHandler();
|
2014-01-16 19:58:28 +00:00
|
|
|
|
2014-01-17 00:45:42 +00:00
|
|
|
void fireNetRegistrationEvent(EventBus bus, NetworkManager manager, Set<String> channelSet, String channel, Side side);
|
2014-02-08 17:18:34 +00:00
|
|
|
|
2014-03-11 07:50:55 +00:00
|
|
|
boolean shouldAllowPlayerLogins();
|
2014-07-31 12:47:11 +00:00
|
|
|
|
|
|
|
void allowLogins();
|
2014-12-14 01:45:38 +00:00
|
|
|
|
|
|
|
IThreadListener getWorldThread(INetHandler net);
|
2015-05-11 03:55:11 +00:00
|
|
|
|
2015-04-21 01:42:59 +00:00
|
|
|
void processWindowMessages();
|
2015-05-17 14:11:41 +00:00
|
|
|
|
|
|
|
String stripSpecialChars(String message);
|
2016-07-30 17:31:46 +00:00
|
|
|
|
|
|
|
void reloadRenderers();
|
2016-09-18 01:08:42 +00:00
|
|
|
|
|
|
|
void fireSidedRegistryEvents();
|
2016-11-29 00:05:41 +00:00
|
|
|
|
|
|
|
CompoundDataFixer getDataFixer();
|
2012-04-05 15:34:57 +00:00
|
|
|
}
|