New Localization System Implemented :D
This commit is contained in:
parent
7816fb82b8
commit
3363c4561f
41 changed files with 468 additions and 428 deletions
|
|
@ -1,8 +1,9 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Blocks;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
|
@ -61,7 +62,7 @@ public class BlockPlanks extends Block {
|
|||
|
||||
for (int i = 0; i < 7; i++)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemBlockPlanks.PLANK_TYPE[i]);
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemPlanks.PLANK_TYPE[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Blocks;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
|
@ -67,7 +68,7 @@ public class BlockReinforced extends Block {
|
|||
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemBlockReinforced.BRICK_TYPE[i] + " Bricks");
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemReinforced.BRICK_TYPE[i] + " Bricks");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Blocks;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
|
@ -61,7 +62,7 @@ public class BlockStoneBricks extends Block {
|
|||
|
||||
for (int i = 0; i < 7; i++)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemBlockStoneBricks.STONEBRICK_TYPES[i]);
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemStoneBricks.STONEBRICK_TYPES[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Blocks;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
|
@ -65,7 +66,7 @@ public class BlockStones extends Block {
|
|||
|
||||
for (int i = 0; i < 14; i++)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemBlockStones.STONE_TYPES[i]);
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemStones.STONE_TYPES[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,20 +1,20 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Blocks;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ItemBlockPlanks extends ItemBlock {
|
||||
public class ItemPlanks extends ItemBlock {
|
||||
|
||||
public static String[] PLANK_TYPE = new String[] {"Purple Planks", "Green Planks", "Black Planks", "Orange Planks", "Red Planks", "Blue Planks", "Yellow Planks"};
|
||||
|
||||
public ItemBlockPlanks(int par1) {
|
||||
public ItemPlanks(int par1) {
|
||||
super(par1);
|
||||
setMaxDamage(0);
|
||||
setHasSubtypes(true);
|
||||
|
|
@ -23,7 +23,7 @@ public class ItemBlockPlanks extends ItemBlock {
|
|||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, PLANK_TYPE.length);
|
||||
return super.getUnlocalizedName() + PLANK_TYPE[meta];
|
||||
return PLANK_TYPE[meta];
|
||||
}
|
||||
|
||||
public int getMetadata(int par1)
|
||||
|
|
@ -1,21 +1,21 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Blocks;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ItemBlockReinforced extends ItemBlock {
|
||||
public class ItemReinforced extends ItemBlock {
|
||||
|
||||
public static String[] BRICK_TYPE = new String[] {"Mithril", "Verdite", "Iridium", "Adamantine", "Tourmaline", "Topaz", "Amethyst", "Agate"};
|
||||
|
||||
public ItemBlockReinforced(int par1) {
|
||||
public ItemReinforced(int par1) {
|
||||
super(par1);
|
||||
setMaxDamage(0);
|
||||
setHasSubtypes(true);
|
||||
|
|
@ -25,7 +25,7 @@ public class ItemBlockReinforced extends ItemBlock {
|
|||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, BRICK_TYPE.length);
|
||||
return super.getUnlocalizedName() + BRICK_TYPE[meta];
|
||||
return BRICK_TYPE[meta] + " Bricks";
|
||||
}
|
||||
|
||||
public int getMetadata(int par1)
|
||||
|
|
@ -1,20 +1,20 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Blocks;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ItemBlockStoneBricks extends ItemBlock {
|
||||
public class ItemStoneBricks extends ItemBlock {
|
||||
|
||||
public static String[] STONEBRICK_TYPES = new String[] {"Anorthosite Bricks", "Limestone Bricks", "Marble Bricks", "Migmatite Bricks", "Orthogneiss Bricks", "Slate Bricks", "Travertine Bricks"};
|
||||
|
||||
public ItemBlockStoneBricks(int par1) {
|
||||
public ItemStoneBricks(int par1) {
|
||||
super(par1);
|
||||
setMaxDamage(0);
|
||||
setHasSubtypes(true);
|
||||
|
|
@ -23,7 +23,7 @@ public class ItemBlockStoneBricks extends ItemBlock {
|
|||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, STONEBRICK_TYPES.length);
|
||||
return super.getUnlocalizedName() + STONEBRICK_TYPES[meta];
|
||||
return STONEBRICK_TYPES[meta];
|
||||
}
|
||||
|
||||
public int getMetadata(int par1)
|
||||
|
|
@ -37,6 +37,4 @@ public class ItemBlockStoneBricks extends ItemBlock {
|
|||
{
|
||||
return MysticStones.StoneBricks.getIcon(2, par1);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,21 +1,21 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Blocks;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ItemBlockStones extends ItemBlock {
|
||||
public class ItemStones extends ItemBlock {
|
||||
|
||||
public static String[] STONE_TYPES = new String[] {"Smooth Anorthosite", "Anorthosite", "Smooth Limestone", "Limestone", "Smooth Marble", "Marble", "Smooth Migmatite", "Migmatite",
|
||||
"Smooth Orthogneiss", "Orthogneiss", "Smooth Slate", "Slate", "Smooth Travertine", "Travertine"};
|
||||
|
||||
public ItemBlockStones(int par1) {
|
||||
public ItemStones(int par1) {
|
||||
super(par1);
|
||||
setMaxDamage(0);
|
||||
setHasSubtypes(true);
|
||||
|
|
@ -24,9 +24,10 @@ public class ItemBlockStones extends ItemBlock {
|
|||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, STONE_TYPES.length);
|
||||
return super.getUnlocalizedName() + STONE_TYPES[meta];
|
||||
return STONE_TYPES[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetadata(int par1)
|
||||
{
|
||||
return par1;
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
package MysticStones;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||
|
||||
public class LanguageManager
|
||||
{
|
||||
public static void init()
|
||||
{
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 0), "Smooth Anorthosite");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 1), "Anorthosite");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 2), "Smooth Limestone");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 3), "Limestone");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 4), "Smooth Marble");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 5), "Marble");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 6), "Smooth Migmatite");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 7), "Migmatite");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 8), "Smooth Orthogneiss");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 9), "Orthogneiss");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 10), "Smooth Slate");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 11), "Slate");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 12), "Smooth Travertine");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Stones, 1, 13), "Travertine");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.StoneBricks, 1, 0), "Anorthosite Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.StoneBricks, 1, 1), "Limestone Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.StoneBricks, 1, 2), "Marble Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.StoneBricks, 1, 3), "Migmatite Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.StoneBricks, 1, 4), "Orthogneiss Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.StoneBricks, 1, 5), "Slate Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.StoneBricks, 1, 6), "Travertine Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Planks, 1, 0), "Purple Planks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Planks, 1, 1), "Green Planks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Planks, 1, 2), "Black Planks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Planks, 1, 3), "Orange Planks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Planks, 1, 4), "Red Planks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Planks, 1, 5), "Blue Planks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.Planks, 1, 6), "Yellow Planks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.ReinforcedBricks, 1, 0), "Reinforced Mithril Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.ReinforcedBricks, 1, 1), "Reinforced Verdite Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.ReinforcedBricks, 1, 2), "Reinforced Iridium Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.ReinforcedBricks, 1, 3), "Reinforced Adamantine Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.ReinforcedBricks, 1, 4), "Reinforced Tourmaline Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.ReinforcedBricks, 1, 5), "Reinforced Topaz Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.ReinforcedBricks, 1, 6), "Reinforced Amethyst Bricks");
|
||||
LanguageRegistry.instance().addName(new ItemStack(MysticStones.ReinforcedBricks, 1, 7), "Reinforced Agate Bricks");
|
||||
|
||||
LanguageRegistry.instance().addStringLocalization("itemGroup.MysticStonesTab", "en_US", "Mystic Stones!");
|
||||
}
|
||||
}
|
||||
|
|
@ -3,6 +3,25 @@ package MysticStones;
|
|||
import java.io.File;
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.Blocks.BlockPlanks;
|
||||
import MysticStones.Blocks.BlockReinforced;
|
||||
import MysticStones.Blocks.BlockStoneBricks;
|
||||
import MysticStones.Blocks.BlockStones;
|
||||
import MysticStones.Blocks.ItemPlanks;
|
||||
import MysticStones.Blocks.ItemReinforced;
|
||||
import MysticStones.Blocks.ItemStoneBricks;
|
||||
import MysticStones.Blocks.ItemStones;
|
||||
import MysticStones.Util.Config;
|
||||
import MysticStones.Util.Localizations;
|
||||
import MysticStones.Util.RecipeHandler;
|
||||
import MysticStones.Util.TabMysticStones;
|
||||
import MysticStones.Worldgen.WorldgenSmoothAnorthosite;
|
||||
import MysticStones.Worldgen.WorldgenSmoothLimestone;
|
||||
import MysticStones.Worldgen.WorldgenSmoothMarble;
|
||||
import MysticStones.Worldgen.WorldgenSmoothMigmatite;
|
||||
import MysticStones.Worldgen.WorldgenSmoothOrthogneiss;
|
||||
import MysticStones.Worldgen.WorldgenSmoothSlate;
|
||||
import MysticStones.Worldgen.WorldgenSmoothTravertine;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
|
@ -32,6 +51,9 @@ import cpw.mods.fml.common.registry.LanguageRegistry;
|
|||
|
||||
public class MysticStones
|
||||
{
|
||||
@Instance("Mystic Stones")
|
||||
public static MysticStones instance;
|
||||
|
||||
public static Block Planks;
|
||||
public static Block Stones;
|
||||
public static Block StoneBricks;
|
||||
|
|
@ -52,12 +74,12 @@ public class MysticStones
|
|||
StoneBricks = new BlockStoneBricks(Config.StoneBricksID);
|
||||
ReinforcedBricks = new BlockReinforced(Config.ReinforcedBricksID);
|
||||
|
||||
GameRegistry.registerBlock(Planks, ItemBlockPlanks.class, "Planks");
|
||||
GameRegistry.registerBlock(Stones, ItemBlockStones.class, "Stones");
|
||||
GameRegistry.registerBlock(StoneBricks, ItemBlockStoneBricks.class, "StoneBricks");
|
||||
GameRegistry.registerBlock(ReinforcedBricks, ItemBlockReinforced.class, "Reinforcedbricks");
|
||||
GameRegistry.registerBlock(Planks, ItemPlanks.class, "Planks");
|
||||
GameRegistry.registerBlock(Stones, ItemStones.class, "Stones");
|
||||
GameRegistry.registerBlock(StoneBricks, ItemStoneBricks.class, "StoneBricks");
|
||||
GameRegistry.registerBlock(ReinforcedBricks, ItemReinforced.class, "Reinforcedbricks");
|
||||
|
||||
LanguageManager.init();
|
||||
Localizations.Initialize();
|
||||
RecipeHandler.CraftPlanks();
|
||||
RecipeHandler.CraftStoneBricks();
|
||||
RecipeHandler.CraftElse();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Util;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
112
common/MysticStones/Util/Localizations.java
Normal file
112
common/MysticStones/Util/Localizations.java
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
package MysticStones.Util;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Enumeration;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipException;
|
||||
import java.util.zip.ZipFile;
|
||||
import MysticStones.MysticStones;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||
/*
|
||||
*
|
||||
* All credits go to copygirl (or copy....boy) for this one
|
||||
* Couldn't have done any of this without your
|
||||
* repository, many thanks friend c:
|
||||
*
|
||||
*/
|
||||
|
||||
public class Localizations
|
||||
{
|
||||
private Localizations(){}
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
File source = Loader.instance().getReversedModObjectList().get(MysticStones.instance).getSource();
|
||||
Pattern pattern = Pattern.compile(".*(assets/" + "mysticmods/lang/(.+)\\.(.+))");
|
||||
for(String file : getResources(source, pattern))
|
||||
{
|
||||
Matcher matcher = pattern.matcher(file);
|
||||
matcher.find();
|
||||
String resource = "/" + matcher.group(1);
|
||||
String lang = matcher.group(2);
|
||||
boolean isXML = matcher.group(3).equalsIgnoreCase("XML");
|
||||
LanguageRegistry.instance().loadLocalization(resource, lang, isXML);
|
||||
}
|
||||
}
|
||||
|
||||
private static Collection<String> getResources(File file, Pattern pattern)
|
||||
{
|
||||
ArrayList<String> retval = new ArrayList<String>();
|
||||
if(file.isDirectory())
|
||||
retval.addAll(getResourcesFromDirectory(file, pattern));
|
||||
else retval.addAll(getResourcesFromJarFile(file, pattern));
|
||||
return retval;
|
||||
}
|
||||
|
||||
private static Collection<String> getResourcesFromJarFile(File file, Pattern pattern)
|
||||
{
|
||||
ArrayList<String> retval = new ArrayList<String>();
|
||||
ZipFile Zip;
|
||||
try
|
||||
{
|
||||
Zip = new ZipFile(file);
|
||||
}
|
||||
catch (ZipException Ex)
|
||||
{
|
||||
throw new Error(Ex);
|
||||
}
|
||||
catch(IOException Ex)
|
||||
{
|
||||
throw new Error(Ex);
|
||||
}
|
||||
Enumeration<? extends ZipEntry> entries = Zip.entries();
|
||||
while (entries.hasMoreElements())
|
||||
{
|
||||
ZipEntry ZipE = entries.nextElement();
|
||||
String FileName = ZipE.getName();
|
||||
boolean accept = pattern.matcher(FileName).matches();
|
||||
if(accept)
|
||||
retval.add(FileName);
|
||||
}
|
||||
try
|
||||
{
|
||||
Zip.close();
|
||||
}
|
||||
catch(IOException Ex)
|
||||
{
|
||||
throw new Error(Ex);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
private static Collection<String> getResourcesFromDirectory(File directory, Pattern pattern)
|
||||
{
|
||||
ArrayList<String> retval = new ArrayList<String>();
|
||||
File[] FileList = directory.listFiles();
|
||||
for (File file : FileList)
|
||||
{
|
||||
if (file.isDirectory())
|
||||
{
|
||||
retval.addAll(getResourcesFromDirectory(file, pattern));
|
||||
}
|
||||
else try
|
||||
{
|
||||
String fileName = file.getCanonicalPath().replace('\\', '/');
|
||||
boolean accept = pattern.matcher(fileName).matches();
|
||||
if (accept) retval.add(fileName);
|
||||
}
|
||||
catch(final IOException e)
|
||||
{
|
||||
throw new Error(e);
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Util;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Util;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Worldgen;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import MysticStones.Util.Config;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
|
|
@ -1,12 +1,13 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Worldgen;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import MysticStones.Util.Config;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.feature.WorldGenMinable;
|
||||
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
public class WorldgenSmoothLimestone implements IWorldGenerator
|
||||
|
|
@ -1,12 +1,13 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Worldgen;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import MysticStones.Util.Config;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.feature.WorldGenMinable;
|
||||
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
public class WorldgenSmoothMarble implements IWorldGenerator
|
||||
|
|
@ -1,12 +1,13 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Worldgen;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import MysticStones.Util.Config;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.feature.WorldGenMinable;
|
||||
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
public class WorldgenSmoothMigmatite implements IWorldGenerator
|
||||
|
|
@ -1,12 +1,13 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Worldgen;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import MysticStones.Util.Config;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.feature.WorldGenMinable;
|
||||
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
public class WorldgenSmoothOrthogneiss implements IWorldGenerator
|
||||
|
|
@ -1,12 +1,13 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Worldgen;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import MysticStones.Util.Config;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.feature.WorldGenMinable;
|
||||
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
public class WorldgenSmoothSlate implements IWorldGenerator
|
||||
|
|
@ -1,12 +1,13 @@
|
|||
package MysticStones;
|
||||
package MysticStones.Worldgen;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import MysticStones.MysticStones;
|
||||
import MysticStones.Util.Config;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.feature.WorldGenMinable;
|
||||
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
public class WorldgenSmoothTravertine implements IWorldGenerator
|
||||
|
|
@ -28,7 +28,7 @@ public class ItemBush extends ItemBlock {
|
|||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, BUSH_TYPES.length);
|
||||
return super.getUnlocalizedName() + BUSH_TYPES[meta];
|
||||
return BUSH_TYPES[meta];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package MysticWorld.Client;
|
|||
import net.minecraft.src.ModLoader;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
import MysticWorld.CommonProxy;
|
||||
import MysticWorld.Blocks.BlockHandler;
|
||||
import MysticWorld.Client.FX.LightCubeFX;
|
||||
import MysticWorld.Client.FX.PowerAirFX;
|
||||
|
|
@ -32,6 +31,7 @@ import MysticWorld.Renderer.ItemStaffWaterRenderer;
|
|||
import MysticWorld.Renderer.RenderStaffPower;
|
||||
import MysticWorld.Renderer.TileEntityPillarInsertRenderer;
|
||||
import MysticWorld.TileEntity.TileEntityPillarInsert;
|
||||
import MysticWorld.Util.CommonProxy;
|
||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@ package MysticWorld.Items;
|
|||
import java.util.List;
|
||||
|
||||
import MysticWorld.MysticWorld;
|
||||
import MysticWorld.Reference;
|
||||
import MysticWorld.Lib.Strings;
|
||||
|
||||
import MysticWorld.Util.Reference;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
|
@ -34,6 +33,7 @@ public class ItemBushFruit extends ItemFood {
|
|||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
maxStackSize = 64;
|
||||
setAlwaysEdible();
|
||||
setUnlocalizedName("bushFruit");
|
||||
}
|
||||
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer player)
|
||||
|
|
@ -139,13 +139,6 @@ public class ItemBushFruit extends ItemFood {
|
|||
{
|
||||
return 24;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, 5);
|
||||
return super.getUnlocalizedName() + FRUIT_TYPES[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ public class ItemStaff extends Item
|
|||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean isFull3D()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,16 +23,25 @@ public class ItemStaffParts extends Item {
|
|||
|
||||
private static final String[] STAFF_PARTS = new String[] {"Staff", "Hilt", "Handle", "Head"};
|
||||
|
||||
public ItemStaffParts(int id) {
|
||||
public ItemStaffParts(int id)
|
||||
{
|
||||
super(id);
|
||||
this.setHasSubtypes(true);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
public String getUnlocalizedName(ItemStack itemStack)
|
||||
{
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, 5);
|
||||
return super.getUnlocalizedName() + STAFF_PARTS[meta];
|
||||
return STAFF_PARTS[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean isFull3D()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@ package MysticWorld.Items;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import MysticWorld.Reference;
|
||||
|
||||
import MysticWorld.Util.Reference;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
|
|
|||
|
|
@ -1,92 +0,0 @@
|
|||
package MysticWorld;
|
||||
|
||||
import MysticWorld.Blocks.BlockHandler;
|
||||
import MysticWorld.Items.ItemHandler$1;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||
|
||||
public class Lang
|
||||
{
|
||||
public static void init()
|
||||
{
|
||||
//Creative Tab Name
|
||||
LanguageRegistry.instance().addStringLocalization("itemGroup.MysticWorldTab", "en_US", "Mystic World!");
|
||||
|
||||
//Blocks
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.oreImbuedStone, 1, 0), "Charred Stone");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.oreImbuedStone, 1, 1), "Moistened Stone");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.oreImbuedStone, 1, 2), "Mossified Stone");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.oreImbuedStone, 1, 3), "Oxygenated Stone");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.oreImbuedStone, 1, 4), "Energized Stone");
|
||||
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 0), "Bush");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 1), "Poisonous Bush");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 2), "Bush of Weakness");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 3), "Bush of Slowness");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 4), "Bush of Harming");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 5), "Withering Bush");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 6), "Bush of Health");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 7), "Bush of Speed");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 8), "Bush of Flames");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 9), "Bush of Regen");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 10), "Bush of Vision");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.bush, 1, 11), "Bush of Invisibility");
|
||||
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.lightCube, 1), "Light Cube");
|
||||
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.pillarPlatform, 1), "Pillar Platform");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.pillar, 1), "Pillar Tower");
|
||||
LanguageRegistry.instance().addName(new ItemStack(BlockHandler.pillarInsert, 1), "Pillar Insert");
|
||||
|
||||
//Items
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.staffParts, 1, 0), "Staff");
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.staffParts, 1, 1), "Staff Hilt");
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.staffParts, 1, 2), "Staff Handle");
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.staffParts, 1, 3), "Staff Topper");
|
||||
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.imbuedShard, 1, 0), "Charred Shard");
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.imbuedShard, 1, 1), "Moistened Shard");
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.imbuedShard, 1, 2), "Mossified Shard");
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.imbuedShard, 1, 3), "Oxygenated Shard");
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.imbuedShard, 1, 4), "Energized Shard");
|
||||
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.fireStaff, "Fire Staff");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.waterStaff, "Water Staff");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.earthStaff, "Earth Staff");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.airStaff, "Air Staff");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.energyStaff, "Energy Staff");
|
||||
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.verditeHelmet, "Verdite Helmet");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.verditeChestplate, "Verdite Chestplate");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.verditeLeggings, "Verdite Leggings");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.verditeBoots, "Verdite Boots");
|
||||
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.mithrilHelmet, "Mithril Helmet");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.mithrilChestplate, "Mithril Chestplate");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.mithrilLeggings, "Mithril Leggings");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.mithrilBoots, "Mithril Boots");
|
||||
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.adamantineHelmet, "Adamantine Helmet");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.adamantineChestplate, "Adamantine Chestplate");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.adamantineLeggings, "Adamantine Leggings");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.adamantineBoots, "Adamantine Boots");
|
||||
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.iridiumHelmet, "Iridium Helmet");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.iridiumChestplate, "Iridium Chestplate");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.iridiumLeggings, "Iridium Leggings");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.iridiumBoots, "Iridium Boots");
|
||||
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.fireOrb, "Fire Orb");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.waterOrb, "Water Orb");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.earthOrb, "Earth Orb");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.airOrb, "Air Orb");
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.energyOrb, "Energy Orb");
|
||||
|
||||
LanguageRegistry.instance().addName(ItemHandler$1.voidShard, "Void Shard");
|
||||
|
||||
for (int i = 0; i < 12; i++)
|
||||
{
|
||||
LanguageRegistry.instance().addName(new ItemStack(ItemHandler$1.bushFruit, 1, i), "Strange Fruit");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11,6 +11,13 @@ import MysticWorld.Entity.EntityHandler;
|
|||
import MysticWorld.Items.ItemHandler$1;
|
||||
import MysticWorld.Lib.Strings;
|
||||
import MysticWorld.TileEntity.TileEntityHandler;
|
||||
import MysticWorld.Util.CommonProxy;
|
||||
import MysticWorld.Util.Config;
|
||||
import MysticWorld.Util.Localizations;
|
||||
import MysticWorld.Util.RecipeHandler;
|
||||
import MysticWorld.Util.Reference;
|
||||
import MysticWorld.Util.TabMysticWorld;
|
||||
import MysticWorld.Util.TickHandler;
|
||||
import MysticWorld.WorldGen.*;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
|
@ -72,24 +79,15 @@ public class MysticWorld
|
|||
this.tickHandler = new TickHandler();
|
||||
|
||||
TickRegistry.registerTickHandler(this.tickHandler, Side.SERVER);
|
||||
VillagerRegistry.instance().registerVillagerSkin(98943, new ResourceLocation("/mods/MysticTextures/textures/mob/MysticVillager.png"));
|
||||
VillagerRegistry.instance().registerVillageTradeHandler(98943, new VillageHutHandler());
|
||||
VillagerRegistry.instance().registerVillageCreationHandler(new VillageHutHandler());
|
||||
BlockHandler.init();
|
||||
ItemHandler$1.init();
|
||||
TileEntityHandler.init();
|
||||
WorldGenHandler$1.init();
|
||||
EntityHandler.init();
|
||||
RecipeHandler.init();
|
||||
MysticHutUtil.addLoot();
|
||||
Lang.init();
|
||||
Localizations.Initialize();
|
||||
|
||||
proxy.registerRenderIDs();
|
||||
proxy.registerRenders();
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package MysticWorld;
|
||||
package MysticWorld.Util;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.src.ModLoader;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package MysticWorld;
|
||||
package MysticWorld.Util;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
112
common/MysticWorld/Util/Localizations.java
Normal file
112
common/MysticWorld/Util/Localizations.java
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
package MysticWorld.Util;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Enumeration;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipException;
|
||||
import java.util.zip.ZipFile;
|
||||
import MysticWorld.MysticWorld;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||
/*
|
||||
*
|
||||
* All credits go to copygirl (or copy....boy) for this one
|
||||
* Couldn't have done any of this without your
|
||||
* repository, many thanks friend c:
|
||||
*
|
||||
*/
|
||||
|
||||
public class Localizations
|
||||
{
|
||||
private Localizations(){}
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
File source = Loader.instance().getReversedModObjectList().get(MysticWorld.instance).getSource();
|
||||
Pattern pattern = Pattern.compile(".*(assets/" + "mysticmods/lang/(.+)\\.(.+))");
|
||||
for(String file : getResources(source, pattern))
|
||||
{
|
||||
Matcher matcher = pattern.matcher(file);
|
||||
matcher.find();
|
||||
String resource = "/" + matcher.group(1);
|
||||
String lang = matcher.group(2);
|
||||
boolean isXML = matcher.group(3).equalsIgnoreCase("XML");
|
||||
LanguageRegistry.instance().loadLocalization(resource, lang, isXML);
|
||||
}
|
||||
}
|
||||
|
||||
private static Collection<String> getResources(File file, Pattern pattern)
|
||||
{
|
||||
ArrayList<String> retval = new ArrayList<String>();
|
||||
if(file.isDirectory())
|
||||
retval.addAll(getResourcesFromDirectory(file, pattern));
|
||||
else retval.addAll(getResourcesFromJarFile(file, pattern));
|
||||
return retval;
|
||||
}
|
||||
|
||||
private static Collection<String> getResourcesFromJarFile(File file, Pattern pattern)
|
||||
{
|
||||
ArrayList<String> retval = new ArrayList<String>();
|
||||
ZipFile Zip;
|
||||
try
|
||||
{
|
||||
Zip = new ZipFile(file);
|
||||
}
|
||||
catch (ZipException Ex)
|
||||
{
|
||||
throw new Error(Ex);
|
||||
}
|
||||
catch(IOException Ex)
|
||||
{
|
||||
throw new Error(Ex);
|
||||
}
|
||||
Enumeration<? extends ZipEntry> entries = Zip.entries();
|
||||
while (entries.hasMoreElements())
|
||||
{
|
||||
ZipEntry ZipE = entries.nextElement();
|
||||
String FileName = ZipE.getName();
|
||||
boolean accept = pattern.matcher(FileName).matches();
|
||||
if(accept)
|
||||
retval.add(FileName);
|
||||
}
|
||||
try
|
||||
{
|
||||
Zip.close();
|
||||
}
|
||||
catch(IOException Ex)
|
||||
{
|
||||
throw new Error(Ex);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
private static Collection<String> getResourcesFromDirectory(File directory, Pattern pattern)
|
||||
{
|
||||
ArrayList<String> retval = new ArrayList<String>();
|
||||
File[] FileList = directory.listFiles();
|
||||
for (File file : FileList)
|
||||
{
|
||||
if (file.isDirectory())
|
||||
{
|
||||
retval.addAll(getResourcesFromDirectory(file, pattern));
|
||||
}
|
||||
else try
|
||||
{
|
||||
String fileName = file.getCanonicalPath().replace('\\', '/');
|
||||
boolean accept = pattern.matcher(fileName).matches();
|
||||
if (accept) retval.add(fileName);
|
||||
}
|
||||
catch(final IOException e)
|
||||
{
|
||||
throw new Error(e);
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package MysticWorld;
|
||||
package MysticWorld.Util;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package MysticWorld;
|
||||
package MysticWorld.Util;
|
||||
|
||||
public class Reference {
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package MysticWorld;
|
||||
package MysticWorld.Util;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package MysticWorld;
|
||||
package MysticWorld.Util;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
|
|
@ -1,120 +0,0 @@
|
|||
package MysticWorld.WorldGen;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import MysticOres.Blocks.BlockHandler;
|
||||
import MysticOres.Items.Items;
|
||||
import MysticStones.MysticStones;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntityChest;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.gen.structure.ComponentVillage;
|
||||
import net.minecraft.world.gen.structure.ComponentVillageStartPiece;
|
||||
import net.minecraft.world.gen.structure.StructureBoundingBox;
|
||||
import net.minecraft.world.gen.structure.StructureComponent;
|
||||
|
||||
public class ComponentVillagerHut extends ComponentVillage
|
||||
{
|
||||
private int averageGroundLevel = -1;
|
||||
|
||||
public ComponentVillagerHut(ComponentVillageStartPiece par1ComponentVillageStartPiece, int par2, Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5)
|
||||
{
|
||||
super(par1ComponentVillageStartPiece, par2);
|
||||
this.coordBaseMode = par5;
|
||||
this.boundingBox = par4StructureBoundingBox;
|
||||
}
|
||||
public static ComponentVillagerHut buildComponent (ComponentVillageStartPiece villagePiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5)
|
||||
{
|
||||
StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p1, p2, p3, 0, 0, 0, 7, 6, 7, p4);
|
||||
return canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(pieces, structureboundingbox) == null ? new ComponentVillagerHut(villagePiece, p5, random,
|
||||
structureboundingbox, p4) : null;
|
||||
}
|
||||
public boolean addComponentParts (World world, Random random, StructureBoundingBox sbb)
|
||||
{
|
||||
if (this.averageGroundLevel < 0)
|
||||
{
|
||||
this.averageGroundLevel = this.getAverageGroundLevel(world, sbb);
|
||||
if (this.averageGroundLevel < 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
this.boundingBox.offset(0, this.averageGroundLevel - this.boundingBox.maxY + 4, 0);
|
||||
}
|
||||
/*------------------------------------------------------------------Base------------------------------------------------------------------------*/
|
||||
this.fillWithMetadataBlocks(world, sbb, 0, 0, 0, 6, 0, 6, MysticStones.StoneBricks.blockID, 2, MysticStones.StoneBricks.blockID, 2, false);
|
||||
this.fillWithBlocks(world, sbb, 0, 5, 0, 6, 5, 6, Block.cobblestoneWall.blockID, Block.cobblestoneWall.blockID, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 1, 0, 1, 5, 0, 5, MysticStones.StoneBricks.blockID, 2, MysticStones.StoneBricks.blockID, 2, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 2, 0, 2, 4, 0, 4, MysticStones.ReinforcedBricks.blockID, 4, MysticStones.ReinforcedBricks.blockID, 4, false);
|
||||
/*------------------------------------------------------------------Edges-------------------------------------------------------------------------*/
|
||||
this.fillWithMetadataBlocks(world, sbb, 0, 1, 0, 0, 4, 0, Block.stoneBrick.blockID, 0, Block.stoneBrick.blockID, 0, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 0, 1, 6, 0, 4, 6, Block.stoneBrick.blockID, 0, Block.stoneBrick.blockID, 0, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 6, 1, 0, 6, 4, 0, Block.stoneBrick.blockID, 0, Block.stoneBrick.blockID, 0, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 6, 1, 6, 6, 4, 6, Block.stoneBrick.blockID, 0, Block.stoneBrick.blockID, 0, false);
|
||||
/*-------------------------------------------------------------------Walls------------------------------------------------------------------------*/
|
||||
this.fillWithMetadataBlocks(world, sbb, 0, 1, 1, 0, 1, 5, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 1, 1, 0, 5, 1, 0, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 6, 1, 1, 6, 1, 5, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 1, 1, 6, 5, 1, 6, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 0, 3, 1, 0, 3, 5, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 1, 3, 0, 5, 3, 0, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 6, 3, 1, 6, 3, 5, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 1, 3, 6, 5, 3, 6, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 0, 4, 1, 0, 4, 5, Block.stoneBrick.blockID, 0, Block.stoneBrick.blockID, 0, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 1, 4, 0, 5, 4, 0, Block.stoneBrick.blockID, 0, Block.stoneBrick.blockID, 0, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 6, 4, 1, 6, 4, 5, Block.stoneBrick.blockID, 0, Block.stoneBrick.blockID, 0, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 1, 4, 6, 5, 4, 6, Block.stoneBrick.blockID, 0, Block.stoneBrick.blockID, 0, false);
|
||||
this.fillWithBlocks(world, sbb, 1, 1, 1, 5, 5, 5, 0, 0, false);
|
||||
this.fillWithMetadataBlocks(world, sbb, 1, 4, 1, 5, 4, 5, MysticStones.Planks.blockID, 5, MysticStones.Planks.blockID, 5, false);
|
||||
/*---------------------------------------------------------Glass and Door--------------------------------------------------------------------------*/
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 1, 2, 0, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 2, 2, 0, sbb);
|
||||
this.placeDoorAtCurrentPosition(world, sbb, random, 3, 1, 0, this.getMetadataWithOffset(Block.doorWood.blockID, 1));
|
||||
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 4, 2, 0, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 5, 2, 0, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 1, 2, 6, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 2, 2, 6, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 3, 2, 6, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 4, 2, 6, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 5, 2, 6, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 0, 2, 1, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 0, 2, 2, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 0, 2, 3, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 0, 2, 4, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 0, 2, 5, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 6, 2, 1, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 6, 2, 2, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, MysticStones.Planks.blockID, 5, 6, 2, 3, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 6, 2, 4, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, BlockHandler.BlockBase.blockID, 12, 6, 2, 5, sbb);
|
||||
/*-------------------------------------------------------------Ladders---------------------------------------------------------------------------*/
|
||||
int i = this.getMetadataWithOffset(Block.ladder.blockID, 3);
|
||||
this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 1, 5, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 2, 5, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 3, 5, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 4, 5, sbb);
|
||||
/*---------------------------------------------------------------Inside--------------------------------------------------------------------------*/
|
||||
this.placeBlockAtCurrentPosition(world, Block.furnaceIdle.blockID, i, 1, 1, 1, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, Block.workbench.blockID, 0, 1, 1, 4, sbb);
|
||||
this.placeBlockAtCurrentPosition(world, Block.anvil.blockID, 2, 1, 1, 5, sbb);
|
||||
this.generateStructureChestContents(world, sbb, random, 4, 1, 5, MysticHutUtil.MysticHutChest.getItems(random), MysticHutUtil.MysticHutChest.getCount(random));
|
||||
|
||||
for (int l = 0; l < 6; ++l)
|
||||
{
|
||||
for (int i1 = 0; i1 < 9; ++i1)
|
||||
{
|
||||
this.clearCurrentPositionBlocksUpwards(world, i1, 9, l, sbb);
|
||||
this.fillCurrentPositionBlocksDownwards(world, MysticStones.StoneBricks.blockID, 2, i1, -1, l, sbb);
|
||||
}
|
||||
}
|
||||
this.spawnVillagers(world, sbb, 3, 1, 3, 1);
|
||||
return true;
|
||||
}
|
||||
protected int getVillagerType (int par1)
|
||||
{
|
||||
return 98943;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
package MysticWorld.WorldGen;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
import MysticOres.Items.Items;
|
||||
import MysticWorld.Items.ItemHandler$1;
|
||||
|
||||
public class MysticHutUtil
|
||||
{
|
||||
public MysticHutUtil()
|
||||
{
|
||||
addLoot();
|
||||
}
|
||||
|
||||
public static ChestGenHooks MysticHutChest;
|
||||
|
||||
public static void addLoot()
|
||||
{
|
||||
MysticHutChest = new ChestGenHooks("MysticHutChest", new WeightedRandomChestContent[0], 1, 15);
|
||||
MysticHutChest.addItem(new WeightedRandomChestContent(new ItemStack(Items.Resource, 1, 13), 0, 1, 1000));
|
||||
MysticHutChest.addItem(new WeightedRandomChestContent(new ItemStack(Items.Resource, 1, 9), 0, 1, 1000));
|
||||
MysticHutChest.addItem(new WeightedRandomChestContent(new ItemStack(Items.Resource, 1, 4), 0, 1, 1000));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
package MysticWorld.WorldGen;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import MysticWorld.Items.ItemHandler$1;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.village.MerchantRecipe;
|
||||
import net.minecraft.village.MerchantRecipeList;
|
||||
import net.minecraft.world.gen.structure.ComponentVillageStartPiece;
|
||||
import net.minecraft.world.gen.structure.StructureVillagePieceWeight;
|
||||
import cpw.mods.fml.common.registry.VillagerRegistry.IVillageCreationHandler;
|
||||
import cpw.mods.fml.common.registry.VillagerRegistry.IVillageTradeHandler;
|
||||
|
||||
public class VillageHutHandler implements IVillageCreationHandler, IVillageTradeHandler
|
||||
{
|
||||
|
||||
@Override
|
||||
public void manipulateTradesForVillager (EntityVillager villager, MerchantRecipeList recipeList, Random random)
|
||||
{
|
||||
if (villager.getProfession() == 98943)
|
||||
{
|
||||
recipeList.add(new MerchantRecipe(new ItemStack(ItemHandler$1.imbuedShard, 19, 0), new ItemStack(Item.emerald, 1, 0)));
|
||||
recipeList.add(new MerchantRecipe(new ItemStack(ItemHandler$1.imbuedShard, 16, 1), new ItemStack(Item.emerald, 1, 0)));
|
||||
recipeList.add(new MerchantRecipe(new ItemStack(ItemHandler$1.imbuedShard, 17, 2), new ItemStack(Item.emerald, 1, 0)));
|
||||
recipeList.add(new MerchantRecipe(new ItemStack(ItemHandler$1.imbuedShard, 13, 3), new ItemStack(Item.emerald, 1, 0)));
|
||||
recipeList.add(new MerchantRecipe(new ItemStack(ItemHandler$1.imbuedShard, 11, 4), new ItemStack(Item.emerald, 1, 0)));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public StructureVillagePieceWeight getVillagePieceWeight (Random random, int i)
|
||||
{
|
||||
return new StructureVillagePieceWeight(ComponentVillagerHut.class, 30, i + random.nextInt(4));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<?> getComponentClass ()
|
||||
{
|
||||
return ComponentVillagerHut.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object buildComponent (StructureVillagePieceWeight villagePiece, ComponentVillageStartPiece startPiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5)
|
||||
{
|
||||
return ComponentVillagerHut.buildComponent(startPiece, pieces, random, p1, p2, p3, p4, p5);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -8,9 +8,7 @@ public class WorldGenHandler$1 {
|
|||
public static void init()
|
||||
{
|
||||
if(Booleans.ENABLE_BUSH_GEN)
|
||||
{
|
||||
GameRegistry.registerWorldGenerator(new WorldGenBushes());
|
||||
}
|
||||
|
||||
GameRegistry.registerWorldGenerator(new WorldGenStones());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,31 +2,37 @@
|
|||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
||||
<properties version="1.0">
|
||||
<comment>English (en_US) Localization File</comment>
|
||||
|
||||
<entry key="item.VerditeSword.name">Verdite Sword</entry>
|
||||
<entry key="item.VerditePickaxe.name">Verdite Pickaxe</entry>
|
||||
<entry key="item.VerditeShovel.name">Verdite Shovel</entry>
|
||||
<entry key="item.VerditeAxe.name">Verdite Axe</entry>
|
||||
<entry key="item.VerditeHoe.name">Verdite Hoe</entry>
|
||||
|
||||
<entry key="item.MithrilSword.name">Mithril Sword</entry>
|
||||
<entry key="item.MithrilPickaxe.name">Mithril Pickaxe</entry>
|
||||
<entry key="item.MithrilShovel.name">Mithril Shovel</entry>
|
||||
<entry key="item.MithrilAxe.name">Mithril Axe</entry>
|
||||
<entry key="item.MithrilHoe.name">Mithril Hoe</entry>
|
||||
|
||||
<entry key="item.AdamantineSword.name">Adamantine Sword</entry>
|
||||
<entry key="item.AdamantinePickaxe.name">Adamantine Pickaxe</entry>
|
||||
<entry key="item.AdamantineShovel.name">Adamantine Shovel</entry>
|
||||
<entry key="item.AdamantineAxe.name">Adamantine Axe</entry>
|
||||
<entry key="item.AdamantineHoe.name">Adamantine Hoe</entry>
|
||||
|
||||
<entry key="item.IridiumSword.name">Iridium Sword</entry>
|
||||
<entry key="item.IridiumPickaxe.name">Iridium Pickaxe</entry>
|
||||
<entry key="item.IridiumShovel.name">Iridium Shovel</entry>
|
||||
<entry key="item.IridiumAxe.name">Iridium Axe</entry>
|
||||
<entry key="item.IridiumHoe.name">Iridium Hoe</entry>
|
||||
|
||||
<entry key="item.ObsidianSword.name">Obsidian Sword</entry>
|
||||
<entry key="item.ObsidianPickaxe.name">Obsidian Pickaxe</entry>
|
||||
<entry key="item.ObsidianShovel.name">Obsidian Shovel</entry>
|
||||
<entry key="item.ObsidianAxe.name">Obsidian Axe</entry>
|
||||
<entry key="item.ObsidianHoe.name">Obsidian Hoe</entry>
|
||||
|
||||
<entry key="item.BloodstoneSword.name">Bloodstone Sword</entry>
|
||||
<entry key="item.BloodstonePickaxe.name">Bloodstone Pickaxe</entry>
|
||||
<entry key="item.BloodstoneShovel.name">Bloodstone Shovel</entry>
|
||||
|
|
@ -48,9 +54,7 @@
|
|||
<entry key="Obsidian Shard.name">Obsidian Shard</entry>
|
||||
<entry key="Obsidian Rod.name">Obsidian Rod</entry>
|
||||
<entry key="item.Satchel.name">Magical Bag</entry>
|
||||
|
||||
<entry key="itemGroup.MysticOresTab">Mystic Ores</entry>
|
||||
|
||||
|
||||
<entry key="Adamantine Ore.name">Adamantine Ore</entry>
|
||||
<entry key="Amethyst Ore.name">Amethyst Ore</entry>
|
||||
<entry key="Iridium Ore.name">Iridium Ore</entry>
|
||||
|
|
@ -64,4 +68,123 @@
|
|||
<entry key="Red Soulstone.name">Red Soulstone</entry>
|
||||
<entry key="Agate Ore.name">Agate Ore</entry>
|
||||
<entry key="Tempered Glass.name">Tempered Glass</entry>
|
||||
|
||||
<entry key="itemGroup.MysticOresTab">Mystic Ores</entry>
|
||||
|
||||
<entry key="Purple Planks.name">Purple Planks</entry>
|
||||
<entry key="Green Planks.name">Green Planks</entry>
|
||||
<entry key="Black Planks.name">Black Planks</entry>
|
||||
<entry key="Orange Planks.name">Orange Planks</entry>
|
||||
<entry key="Red Planks.name">Red Planks</entry>
|
||||
<entry key="Blue Planks.name">Blue Planks</entry>
|
||||
<entry key="Yellow Planks.name">Yellow Planks</entry>
|
||||
|
||||
<entry key="Smooth Anorthosite.name">Smooth Anorthosite</entry>
|
||||
<entry key="Smooth Limestone.name">Smooth Limestone</entry>
|
||||
<entry key="Smooth Slate.name">Smooth Slate</entry>
|
||||
<entry key="Smooth Migmatite.name">Smooth Migmatite</entry>
|
||||
<entry key="Smooth Orthogneiss.name">Smooth Orthogneiss</entry>
|
||||
<entry key="Smooth Marble.name">Smooth Marble</entry>
|
||||
<entry key="Smooth Travertine.name">Smooth Travertine</entry>
|
||||
|
||||
<entry key="Anorthosite.name">Anorthosite</entry>
|
||||
<entry key="Limestone.name">Limestone</entry>
|
||||
<entry key="Slate.name">Slate</entry>
|
||||
<entry key="Migmatite.name">Migmatite</entry>
|
||||
<entry key="Orthogneiss.name">Orthogneiss</entry>
|
||||
<entry key="Marble.name">Marble</entry>
|
||||
<entry key="Travertine.name">Travertine</entry>
|
||||
|
||||
<entry key="Anorthosite Bricks.name">Anorthosite Bricks</entry>
|
||||
<entry key="Limestone Bricks.name">Limestone Bricks</entry>
|
||||
<entry key="Slate Bricks.name">Slate Bricks</entry>
|
||||
<entry key="Migmatite Bricks.name">Migmatite Bricks</entry>
|
||||
<entry key="Orthogneiss Bricks.name">Orthogneiss Bricks</entry>
|
||||
<entry key="Marble Bricks.name">Marble Bricks</entry>
|
||||
<entry key="Travertine Bricks.name">Travertine Bricks</entry>
|
||||
|
||||
<entry key="Verdite Bricks.name">Verdite Reinforced Bricks</entry>
|
||||
<entry key="Mithril Bricks.name">Mithril Reinforced Bricks</entry>
|
||||
<entry key="Adamantine Bricks.name">Adamantine Reinforced Bricks</entry>
|
||||
<entry key="Iridium Bricks.name">Iridium Reinfroced Bricks</entry>
|
||||
<entry key="Topaz Bricks.name">Topaz Reinforced Bricks</entry>
|
||||
<entry key="Tourmaline Bricks.name">Tourmaline Reinforced Bricks</entry>
|
||||
<entry key="Amethyst Bricks.name">Amethyst Reinforced Bricks</entry>
|
||||
<entry key="Agate Bricks.name">Agate Reinforced Bricks</entry>
|
||||
|
||||
<entry key="itemGroup.MysticStonesTab">Mystic Stones</entry>
|
||||
|
||||
<entry key="tile.imbuedStoneFire.name">Magmatic Stone Chunk</entry>
|
||||
<entry key="tile.imbuedStoneWater.name">Aquatic Stone Chunk</entry>
|
||||
<entry key="tile.imbuedStoneEarth.name">Fertile Stone Chunk</entry>
|
||||
<entry key="tile.imbuedStoneAir.name">Aerated Stone Chunk</entry>
|
||||
<entry key="tile.imbuedStoneEnergy.name">Kinetic Stone Chunk</entry>
|
||||
|
||||
<entry key="Bush.name">Mundane Bush</entry>
|
||||
<entry key="Poisonous Bush.name">Poisonous Bush</entry>
|
||||
<entry key="Weakness Bush.name">Weakening Bush</entry>
|
||||
<entry key="Slowness Bush.name">Slowness Bush</entry>
|
||||
<entry key="Harming Bush.name">Harming Bush</entry>
|
||||
<entry key="Wither Bush.name">Withering Bush</entry>
|
||||
<entry key="Health Bush.name">Healing Bush</entry>
|
||||
<entry key="Speed Bush.name">Speed Bush</entry>
|
||||
<entry key="Fire Resistance Bush.name">Extinguishing Bush</entry>
|
||||
<entry key="Regen Bush.name">Regeneration Bush</entry>
|
||||
<entry key="Night Vision Bush.name">Night Vision Bush</entry>
|
||||
<entry key="Invisibility Bush.name">Invisibility Bush</entry>
|
||||
|
||||
<entry key="tile.platform.name">Pillar Platform</entry>
|
||||
<entry key="tile.pillar.name">Pillar Tower</entry>
|
||||
<entry key="tile.pillarInsert.name">Pillar Insert</entry>
|
||||
|
||||
<entry key="Staff.name">Staff</entry>
|
||||
<entry key="Hilt.name">Staff Hilt</entry>
|
||||
<entry key="Handle.name">Staff Handle</entry>
|
||||
<entry key="Head.name">Staff Topper</entry>
|
||||
|
||||
<entry key="item.imbuedShardFire.name">Magmatic Shard</entry>
|
||||
<entry key="item.imbuedShardWater.name">Aquatic Shard</entry>
|
||||
<entry key="item.imbuedShardEarth.name">Fertile Shard</entry>
|
||||
<entry key="item.imbuedShardAir.name">Aerated Shard</entry>
|
||||
<entry key="item.imbuedShardEnergy.name">Kinetic Shard</entry>
|
||||
|
||||
<entry key="item.fireStaff.name">Magma Staff</entry>
|
||||
<entry key="item.waterStaff.name">Aqua Staff</entry>
|
||||
<entry key="item.earthStaff.name">Fertile Staff</entry>
|
||||
<entry key="item.airStaff.name">Aeration Staff</entry>
|
||||
<entry key="item.energyStaff.name">Kinesis Staff</entry>
|
||||
|
||||
<entry key="item.bushFruit.name">Mysterious Fruit</entry>
|
||||
|
||||
<entry key="item.verditeHelmet.name">Verdite Helmet</entry>
|
||||
<entry key="item.verditeChestplate.name">Verdite Chestplate</entry>
|
||||
<entry key="item.verditeLeggings.name">Verdite Leggings</entry>
|
||||
<entry key="item.verditeBoots.name">Verdite Boots</entry>
|
||||
|
||||
<entry key="item.mithrilHelmet.name">Mithril Helmet</entry>
|
||||
<entry key="item.mithrilChestplate.name">Mithril Chestplate</entry>
|
||||
<entry key="item.mithrilLeggings.name">Mithril Leggings</entry>
|
||||
<entry key="item.mithrilBoots.name">Mithril Boots</entry>
|
||||
|
||||
<entry key="item.adamantineHelmet.name">Adamantine Helmet</entry>
|
||||
<entry key="item.adamantineChestplate.name">Adamantine Chestplate</entry>
|
||||
<entry key="item.adamantineLeggings.name">Adamantine Leggings</entry>
|
||||
<entry key="item.adamantineBoots.name">Adamantine Boots</entry>
|
||||
|
||||
<entry key="item.iridiumHelmet.name">Iridium Helmet</entry>
|
||||
<entry key="item.iridiumChestplate.name">Iridium Chestplate</entry>
|
||||
<entry key="item.iridiumLeggings.name">Iridium Leggings</entry>
|
||||
<entry key="item.iridiumBoots.name">Iridium Boots</entry>
|
||||
|
||||
<entry key="item.fireOrb.name">Magmatic Orb</entry>
|
||||
<entry key="item.waterOrb.name">Aquatic Orb</entry>
|
||||
<entry key="item.earthOrb.name">Orb of Fertility</entry>
|
||||
<entry key="item.airOrb.name">Aerating Orb</entry>
|
||||
<entry key="item.energyOrb.name">Kinesis Orb</entry>
|
||||
|
||||
<entry key="item.voidShard.name">Void Shard</entry>
|
||||
|
||||
<entry key="itemGroup.MysticWorldTab">Mystic World</entry>
|
||||
|
||||
|
||||
</properties>
|
||||
Loading…
Reference in a new issue