Removed server side mod classes.
This commit is contained in:
parent
a27df19fdb
commit
7ee5690011
7 changed files with 1 additions and 376 deletions
|
@ -63,6 +63,7 @@ public class mod_BuildCraftEnergy {
|
||||||
ModLoader.getMinecraftInstance().renderEngine.registerTextureFX(new TextureFuelFX());
|
ModLoader.getMinecraftInstance().renderEngine.registerTextureFX(new TextureFuelFX());
|
||||||
ModLoader.getMinecraftInstance().renderEngine.registerTextureFX(new TextureOilFlowFX());
|
ModLoader.getMinecraftInstance().renderEngine.registerTextureFX(new TextureOilFlowFX());
|
||||||
|
|
||||||
|
// FIXME: Needs to be seperate for server.
|
||||||
ModLoader.registerTileEntity(TileEngine.class, "net.minecraft.src.buildcraft.energy.Engine", new RenderEngine());
|
ModLoader.registerTileEntity(TileEngine.class, "net.minecraft.src.buildcraft.energy.Engine", new RenderEngine());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) SpaceToad, 2011
|
|
||||||
* http://www.mod-buildcraft.com
|
|
||||||
*
|
|
||||||
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
||||||
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
||||||
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
package buildcraft;
|
|
||||||
|
|
||||||
import buildcraft.core.DefaultProps;
|
|
||||||
|
|
||||||
|
|
||||||
public class mod_BuildCraftBuilders extends NetworkMod {
|
|
||||||
|
|
||||||
public static mod_BuildCraftBuilders instance;
|
|
||||||
|
|
||||||
public mod_BuildCraftBuilders() {
|
|
||||||
instance = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void load() {
|
|
||||||
BuildCraftBuilders.load();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void modsLoaded() {
|
|
||||||
super.modsLoaded();
|
|
||||||
|
|
||||||
BuildCraftBuilders.initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getVersion() {
|
|
||||||
return DefaultProps.VERSION;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean clientSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean serverSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,84 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) SpaceToad, 2011
|
|
||||||
* http://www.mod-buildcraft.com
|
|
||||||
*
|
|
||||||
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
||||||
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
||||||
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
package buildcraft;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
import buildcraft.core.ClassMapping;
|
|
||||||
import buildcraft.core.DefaultProps;
|
|
||||||
|
|
||||||
import net.minecraft.server.MinecraftServer;
|
|
||||||
import net.minecraft.src.ModLoader;
|
|
||||||
|
|
||||||
|
|
||||||
public class mod_BuildCraftCore {
|
|
||||||
|
|
||||||
public static mod_BuildCraftCore instance;
|
|
||||||
|
|
||||||
public mod_BuildCraftCore() {
|
|
||||||
instance = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
BuildCraftCore proxy = new BuildCraftCore();
|
|
||||||
|
|
||||||
public static void initialize() {
|
|
||||||
BuildCraftCore.initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
//@Override
|
|
||||||
public void modsLoaded() {
|
|
||||||
mod_BuildCraftCore.initialize();
|
|
||||||
BuildCraftCore.initializeModel(this);
|
|
||||||
ModLoader.setInGameHook(this, true, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String version() {
|
|
||||||
return DefaultProps.VERSION;
|
|
||||||
}
|
|
||||||
|
|
||||||
//@Override
|
|
||||||
public String getVersion() {
|
|
||||||
return version();
|
|
||||||
}
|
|
||||||
|
|
||||||
long lastReport = 0;
|
|
||||||
|
|
||||||
//@Override
|
|
||||||
public boolean onTickInGame(MinecraftServer minecraftserver) {
|
|
||||||
if (BuildCraftCore.trackNetworkUsage) {
|
|
||||||
Date d = new Date();
|
|
||||||
|
|
||||||
if (d.getTime() - lastReport > 10000) {
|
|
||||||
lastReport = d.getTime();
|
|
||||||
int bytes = ClassMapping.report();
|
|
||||||
System.out.println("BuildCraft bandwidth = " + (bytes / 10) + " bytes / second");
|
|
||||||
System.out.println();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
//@Override
|
|
||||||
public void load() {
|
|
||||||
BuildCraftCore.load();
|
|
||||||
}
|
|
||||||
|
|
||||||
//@Override
|
|
||||||
public boolean clientSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
//@Override
|
|
||||||
public boolean serverSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) SpaceToad, 2011
|
|
||||||
* http://www.mod-buildcraft.com
|
|
||||||
*
|
|
||||||
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
||||||
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
||||||
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
package buildcraft;
|
|
||||||
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import buildcraft.core.DefaultProps;
|
|
||||||
import buildcraft.energy.TileEngine;
|
|
||||||
|
|
||||||
import net.minecraft.src.ModLoader;
|
|
||||||
import net.minecraft.src.World;
|
|
||||||
|
|
||||||
|
|
||||||
public class mod_BuildCraftEnergy extends NetworkMod {
|
|
||||||
|
|
||||||
public static mod_BuildCraftEnergy instance;
|
|
||||||
|
|
||||||
public mod_BuildCraftEnergy() {
|
|
||||||
instance = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void modsLoaded() {
|
|
||||||
super.modsLoaded();
|
|
||||||
BuildCraftEnergy.initialize();
|
|
||||||
|
|
||||||
ModLoader.registerTileEntity(TileEngine.class, "net.minecraft.src.buildcraft.energy.Engine");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getVersion() {
|
|
||||||
return DefaultProps.VERSION;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void generateSurface(World world, Random random, int i, int j) {
|
|
||||||
BuildCraftEnergy.generateSurface(world, random, i, j);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void load() {
|
|
||||||
BuildCraftEnergy.load();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean clientSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean serverSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,49 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) SpaceToad, 2011
|
|
||||||
* http://www.mod-buildcraft.com
|
|
||||||
*
|
|
||||||
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
||||||
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
||||||
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
package buildcraft;
|
|
||||||
|
|
||||||
import buildcraft.core.DefaultProps;
|
|
||||||
|
|
||||||
|
|
||||||
public class mod_BuildCraftFactory extends NetworkMod {
|
|
||||||
|
|
||||||
public static mod_BuildCraftFactory instance;
|
|
||||||
|
|
||||||
public mod_BuildCraftFactory() {
|
|
||||||
instance = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void modsLoaded() {
|
|
||||||
super.modsLoaded();
|
|
||||||
|
|
||||||
BuildCraftFactory.initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getVersion() {
|
|
||||||
return DefaultProps.VERSION;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void load() {
|
|
||||||
BuildCraftFactory.load();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean clientSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean serverSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,76 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) SpaceToad, 2011-2012
|
|
||||||
* http://www.mod-buildcraft.com
|
|
||||||
*
|
|
||||||
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
||||||
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
||||||
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
package buildcraft;
|
|
||||||
|
|
||||||
import buildcraft.core.DefaultProps;
|
|
||||||
|
|
||||||
|
|
||||||
public class mod_BuildCraftSilicon extends NetworkMod {
|
|
||||||
|
|
||||||
public static mod_BuildCraftSilicon instance;
|
|
||||||
|
|
||||||
public mod_BuildCraftSilicon() {
|
|
||||||
instance = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void modsLoaded() {
|
|
||||||
super.modsLoaded();
|
|
||||||
|
|
||||||
BuildCraftTransport.initialize();
|
|
||||||
BuildCraftSilicon.initialize();
|
|
||||||
|
|
||||||
BuildCraftSilicon.initializeModel(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @Override public void handlePacket(Packet230ModLoader packet,
|
|
||||||
* EntityPlayerMP entityplayermp) { int x = packet.dataInt[0]; int y =
|
|
||||||
* packet.dataInt[1]; int z = packet.dataInt[2];
|
|
||||||
*
|
|
||||||
* TileEntity tile = entityplayermp.worldObj.getBlockTileEntity(x, y, z);
|
|
||||||
*
|
|
||||||
* switch (PacketIds.values()[packet.packetType]) { case
|
|
||||||
* AssemblyTableSelect: if (tile instanceof TileAssemblyTable) {
|
|
||||||
* TileAssemblyTable assemblyTable = (TileAssemblyTable) tile;
|
|
||||||
* TileAssemblyTable.SelectionMessage message = new
|
|
||||||
* TileAssemblyTable.SelectionMessage();
|
|
||||||
*
|
|
||||||
* TileAssemblyTable.selectionMessageWrapper.updateFromPacket(message,
|
|
||||||
* packet);
|
|
||||||
*
|
|
||||||
* assemblyTable.handleSelectionMessage (message); }
|
|
||||||
*
|
|
||||||
* break; case AssemblyTableGetSelection: if (tile instanceof
|
|
||||||
* TileAssemblyTable) { TileAssemblyTable assemblyTable =
|
|
||||||
* (TileAssemblyTable) tile; assemblyTable.sendSelectionTo(entityplayermp);
|
|
||||||
* } } }
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getVersion() {
|
|
||||||
return DefaultProps.VERSION;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void load() {
|
|
||||||
BuildCraftSilicon.load();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean clientSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean serverSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,56 +0,0 @@
|
||||||
/**
|
|
||||||
* Copyright (c) SpaceToad, 2011
|
|
||||||
* http://www.mod-buildcraft.com
|
|
||||||
*
|
|
||||||
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
||||||
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
||||||
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
package buildcraft;
|
|
||||||
|
|
||||||
import buildcraft.core.DefaultProps;
|
|
||||||
import net.minecraft.src.ModLoader;
|
|
||||||
import net.minecraft.src.TileEntity;
|
|
||||||
|
|
||||||
|
|
||||||
public class mod_BuildCraftTransport extends NetworkMod {
|
|
||||||
|
|
||||||
public static mod_BuildCraftTransport instance;
|
|
||||||
|
|
||||||
public mod_BuildCraftTransport() {
|
|
||||||
instance = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void modsLoaded() {
|
|
||||||
super.modsLoaded();
|
|
||||||
BuildCraftTransport.initialize();
|
|
||||||
BuildCraftTransport.initializeModel(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void registerTilePipe(Class<? extends TileEntity> clas, String name) {
|
|
||||||
ModLoader.registerTileEntity(clas, name);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getVersion() {
|
|
||||||
return DefaultProps.VERSION;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void load() {
|
|
||||||
BuildCraftTransport.load();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean clientSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean serverSideRequired() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in a new issue