mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
Update Readme
This commit is contained in:
1 parent
49a2658129
commit
12b99e6f32
14 files changed
+956
-103
No files matched your search
@@ -0,0 +1,72 @@
|
||||
package test;
|
||||
|
||||
import javax.script.ScriptException;
|
||||
|
||||
import net.minecraft.client.settings.KeyBinding;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.Mod.Init;
|
||||
import cpw.mods.fml.common.Mod.PostInit;
|
||||
import cpw.mods.fml.common.Mod.PreInit;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||
|
||||
/*
|
||||
* mDiyo's development testing mod
|
||||
* Free everything from dirt!
|
||||
*/
|
||||
|
||||
@Mod(modid = "mod_Test", name = "mod_Test", version = "Test")
|
||||
public class mod_Test
|
||||
{
|
||||
public static Item xinstick;
|
||||
public static Item TArmorChestplate;
|
||||
public KeyBinding grabKey;
|
||||
EntityPlayer player;
|
||||
|
||||
@PreInit
|
||||
public void preInit(FMLPreInitializationEvent evt)
|
||||
{
|
||||
System.out.println("Test!");
|
||||
}
|
||||
|
||||
@Init
|
||||
public void init (FMLInitializationEvent evt)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@PostInit
|
||||
public void postInit (FMLPostInitializationEvent evt) throws ScriptException
|
||||
{
|
||||
/*TArmorChestplate = new TArmor(4598, EnumArmorMaterial.CLOTH, 1, 1);
|
||||
GameRegistry.addRecipe(new ItemStack(TArmorChestplate, 64, 0), "s", 's', Block.dirt);
|
||||
GameRegistry.addRecipe(new ItemStack(InfiBlocks.getContentInstance().chiselDiamond, 64, 0), "ss", 's', Block.dirt);
|
||||
GameRegistry.addRecipe(new ItemStack(InfiBlocks.getContentInstance().storageBlock, 64, 0), "s", "s", 's', Block.dirt);*/
|
||||
|
||||
/*ScriptEngineManager manager = new ScriptEngineManager();
|
||||
ScriptEngine engine = manager.getEngineByName("ruby");
|
||||
InputStream resource = mod_Test.class.getResourceAsStream("/test/JTest.rb");
|
||||
engine.eval(new InputStreamReader(resource));*/
|
||||
//JTest jRubyTest = new JTest();
|
||||
|
||||
// Cycle through metadata, don't go over the maximum or it will crash on mouseover
|
||||
/*for (int i = 0; i < 15; i++)
|
||||
{
|
||||
//GameRegistry.addRecipe(new ItemStack(TConstructContent.woodPattern, 1, i + 1), "s", 's', new ItemStack(TConstructContent.woodPattern, 1, i));
|
||||
GameRegistry.addRecipe(new ItemStack(InfiBlocks.getContentInstance().storageBlock, 64, i + 1), "s", 's', new ItemStack(InfiBlocks.getContentInstance().storageBlock, 64, i));
|
||||
GameRegistry.addRecipe(new ItemStack(InfiBlocks.getContentInstance().storageBlock, 64, i + 1), "ss", 's', new ItemStack(InfiBlocks.getContentInstance().storageBlock, 64, i));
|
||||
}*/
|
||||
|
||||
// ModLoader.addName(xinstick, "Stick of Power");
|
||||
}
|
||||
|
||||
static
|
||||
{
|
||||
xinstick = new XinStick(10000).setUnlocalizedName("xinstick");
|
||||
LanguageRegistry.addName(xinstick, "XinRecord");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user