Remove ServerProxy

This commit is contained in:
Raoul Van den Berge
2016-10-16 19:23:34 +02:00
parent 894419700a
commit 114188d969
5 changed files with 11 additions and 17 deletions

View File

@@ -13,25 +13,27 @@ import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import refinedstorage.proxy.CommonProxy;
import refinedstorage.proxy.ProxyCommon;
@Mod(modid = RS.ID, version = RS.VERSION, guiFactory = RS.GUI_FACTORY, dependencies = RS.DEPENDENCIES)
public final class RS {
static {
FluidRegistry.enableUniversalBucket();
}
public static final String ID = "refinedstorage";
public static final String VERSION = "1.2";
public static final String DEPENDENCIES = "required-after:Forge@[12.18.1.2088,);required-after:mcmultipart@[1.2.1,);after:JEI@[3.12.0,);";
public static final String GUI_FACTORY = "refinedstorage.gui.config.ModGuiFactory";
@SidedProxy(clientSide = "refinedstorage.proxy.ClientProxy", serverSide = "refinedstorage.proxy.ServerProxy")
public static CommonProxy PROXY;
@SidedProxy(clientSide = "refinedstorage.proxy.ProxyClient", serverSide = "refinedstorage.proxy.ProxyCommon")
public static ProxyCommon PROXY;
@Instance
public static RS INSTANCE;
public RSConfig config;
public final SimpleNetworkWrapper network = NetworkRegistry.INSTANCE.newSimpleChannel(ID);
public final CreativeTabs tab = new CreativeTabs(ID) {
@Override
public ItemStack getIconItemStack() {
@@ -44,10 +46,6 @@ public final class RS {
}
};
static {
FluidRegistry.enableUniversalBucket();
}
@EventHandler
public void preInit(FMLPreInitializationEvent e) {
config = new RSConfig(e.getSuggestedConfigurationFile());

View File

@@ -6,7 +6,7 @@ import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
import refinedstorage.api.autocrafting.preview.ICraftingPreviewStack;
import refinedstorage.apiimpl.autocrafting.preview.CraftingPreviewStack;
import refinedstorage.proxy.ClientProxy;
import refinedstorage.proxy.ProxyClient;
import java.util.LinkedList;
import java.util.List;
@@ -53,7 +53,7 @@ public class MessageGridCraftingPreviewResponse implements IMessage, IMessageHan
@Override
public IMessage onMessage(MessageGridCraftingPreviewResponse message, MessageContext ctx) {
ClientProxy.onReceiveCraftingPreviewResponse(message);
ProxyClient.onReceiveCraftingPreviewResponse(message);
return null;
}

View File

@@ -39,7 +39,7 @@ import refinedstorage.tile.TileController;
import java.util.List;
public class ClientProxy extends CommonProxy {
public class ProxyClient extends ProxyCommon {
@SubscribeEvent
public void onModelBake(ModelBakeEvent e) {
for (ModelResourceLocation model : e.getModelRegistry().getKeys()) {

View File

@@ -41,7 +41,7 @@ import refinedstorage.tile.grid.TileGrid;
import java.util.ArrayList;
import java.util.List;
public class CommonProxy {
public class ProxyCommon {
protected List<BlockCable> cableTypes = new ArrayList<>();
public void preInit(FMLPreInitializationEvent e) {

View File

@@ -1,4 +0,0 @@
package refinedstorage.proxy;
public class ServerProxy extends CommonProxy {
}