mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 15:56:02 +00:00
Initial patch update to FML and MC 1.2.5
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user