Last active
March 18, 2017 09:15
-
-
Save Daomephsta/d26c2c85e762339b049b4f5338fbee32 to your computer and use it in GitHub Desktop.
CraftTweaker Overloading Test Mod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package leviathan143.overloadtest; | |
import leviathan143.overloadtest.OverloadTest.Constants; | |
import minetweaker.MineTweakerAPI; | |
import net.minecraftforge.fml.common.Mod; | |
import net.minecraftforge.fml.common.event.FMLInitializationEvent; | |
import stanhebben.zenscript.annotations.*; | |
@Mod(modid = Constants.MODID, name = Constants.MODNAME, version = Constants.VERSION, dependencies = Constants.DEPENDENCIES) | |
public class OverloadTest | |
{ | |
public class Constants | |
{ | |
public static final String MODNAME = "Overload Test"; | |
public static final String MODID = "overloadtest"; | |
public static final String VERSION = "0.0.1"; | |
public static final String DEPENDENCIES = "required-after:MineTweaker3"; | |
} | |
@Mod.EventHandler | |
public void init(FMLInitializationEvent event) | |
{ | |
MineTweakerAPI.registerClass(TestMethods.class); | |
} | |
@ZenClass("test.TestMethods") | |
public static class TestMethods | |
{ | |
@ZenMethod | |
public static void test1(int[] testInt) | |
{ | |
} | |
@ZenMethod | |
public static void test1(String[] testString) | |
{ | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import test.TestMethods; | |
TestMethods.test1(["foo", "bar"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment