Versions now have two flavours: the @Mod(version) which is the "programmatic version" and

is used for all version relationship calculation. The "display version" as sourced from
mcmod.info is used for display purposes only and can be literally anything. Note: they fall back
to one another when they're missing, and to "1.0" if both are absent.

Also, changed @Instance. Now, you can inject *other* mods using @Instance as long as you depend
on them as a "before" or "dependency" relationship. Classes containing @Instance will only be
loaded if the Mod the @Instance refers is present. So you don't have to worry about runtime class
resolution.
This commit is contained in:
Christian committed 2012-08-26 10:45:00 -04:00
1 parent a0302861cf
commit fe73f11443
10 files changed
+122 -36

No files matched your search

@@ -18,7 +18,7 @@ import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.Player;
import cpw.mods.fml.common.ModMetadata;
@Mod(modid="MockMod", name="Mock Mod",version="1.2.3", dependencies="before:mod_testMod", useMetadata=true)
@Mod(modid="MockMod", name="Mock Mod",version="1.2.3", dependencies="after:mod_testMod", useMetadata=true)
@NetworkMod(channels={"MockMod"},clientSideRequired=true,packetHandler=MockMod.PacketHandler.class)
public class MockMod
{
@@ -58,6 +58,6 @@ public class MockMod
@Init
public void init(FMLInitializationEvent evt)
{
System.out.printf("Hello from mockmod init : %s %s\n", myInstance, meta);
System.out.printf("Hello from mockmod init : %s %s %s\n", myInstance, meta, MockBlock.tstInstance);
}
}