ForgePatch/src/main/java/net/minecraftforge/fml/common/IFMLSidedHandler.java

95 lines
2.5 KiB
Java
Raw Normal View History

/*
* Minecraft Forge
* Copyright (c) 2016-2018.
*
* 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
*/
2014-09-23 05:01:24 +00:00
package net.minecraftforge.fml.common;
import java.io.File;
import java.util.List;
import java.util.Set;
import net.minecraft.network.INetHandler;
import net.minecraft.network.NetworkManager;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.IThreadListener;
import net.minecraftforge.common.util.CompoundDataFixer;
2018-06-11 01:12:46 +00:00
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.ModContainer;
2018-06-21 19:37:32 +00:00
import net.minecraftforge.fml.StartupQuery;
2012-06-01 02:09:45 +00:00
public interface IFMLSidedHandler
{
List<String> getAdditionalBrandingInformation();
2012-07-31 02:31:07 +00:00
Side getSide();
2012-07-31 02:31:07 +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
void queryUser(StartupQuery query) throws InterruptedException;
void beginServerLoading(MinecraftServer server);
void finishServerLoading();
File getSavesDirectory();
MinecraftServer getServer();
boolean isDisplayCloseRequested();
boolean shouldServerShouldBeKilledQuietly();
void addModAsResource(ModContainer container);
String getCurrentLanguage();
void serverStopped();
NetworkManager getClientToServerNetworkManager();
INetHandler getClientPlayHandler();
2014-01-16 19:58:28 +00:00
2018-06-11 01:12:46 +00:00
void fireNetRegistrationEvent(IEventBus bus, NetworkManager manager, Set<String> channelSet, String channel, Side side);
boolean shouldAllowPlayerLogins();
void allowLogins();
IThreadListener getWorldThread(INetHandler net);
2015-04-21 01:42:59 +00:00
void processWindowMessages();
String stripSpecialChars(String message);
void reloadRenderers();
void fireSidedRegistryEvents();
CompoundDataFixer getDataFixer();
boolean isDisplayVSyncForced();
default void resetClientRecipeBook(){}
default void reloadSearchTrees(){}
default void reloadCreativeSettings(){}
}