Initial patch update to FML and MC 1.2.5

This commit is contained in:
LexManos committed 2012-04-06 02:02:53 -07:00
1 parent 7c148ffa60
commit ab927fce55
31 files changed
+281 -277

No files matched your search

@@ -1,13 +1,13 @@
package net.minecraft.src.forge;
import net.minecraft.src.BaseModMp;
import net.minecraft.src.BaseMod;
/**
* This is for mods that are designed to be used on the server side alone,
* or both the client and server side. This class is used when registering
* various things relating to network traffic. Entity ID's, GUI Id's, etc..
*/
public abstract class NetworkMod extends BaseModMp
public abstract class NetworkMod extends BaseMod
{
/**
* Returns true if every client is required to have this
@@ -22,9 +22,4 @@ public abstract class NetworkMod extends BaseModMp
* @return True if server is required, false if not.
*/
public abstract boolean serverSideRequired();
public boolean hasClientSide()
{
return clientSideRequired();
}
}
@@ -21,6 +21,14 @@ public class mod_MinecraftForge extends NetworkMod
public void load()
{
MinecraftForge.getDungeonLootTries(); //Random thing to make things Initialize
int x = 0;
for (BaseMod mod : ModLoader.getLoadedMods())
{
if (mod instanceof NetworkMod)
{
ForgeHooks.networkMods.put(x++, (NetworkMod)mod);
}
}
}
@Override