Fixed mod metadata
This commit is contained in:
parent
3c5d00eb1e
commit
fd7e15a5c7
4 changed files with 14 additions and 12 deletions
BIN
resources/ri_logo.png
Normal file
BIN
resources/ri_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
|
@ -27,6 +27,7 @@ import resonantinduction.multimeter.TileEntityMultimeter;
|
|||
import resonantinduction.tesla.BlockTesla;
|
||||
import resonantinduction.tesla.TileEntityTesla;
|
||||
import resonantinduction.wire.BlockWire;
|
||||
import resonantinduction.wire.ItemBlockWire;
|
||||
import universalelectricity.core.item.IItemElectric;
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
|
@ -153,9 +154,6 @@ public class ResonantInduction
|
|||
itemCapacitor = new ItemCapacitor(getNextItemID());
|
||||
itemLinker = new ItemLinker(getNextItemID());
|
||||
|
||||
GameRegistry.registerItem(itemQuantumEntangler, itemQuantumEntangler.getUnlocalizedName());
|
||||
GameRegistry.registerItem(itemCapacitor, itemCapacitor.getUnlocalizedName());
|
||||
GameRegistry.registerItem(itemLinker, itemLinker.getUnlocalizedName());
|
||||
|
||||
// Blocks
|
||||
blockTesla = new BlockTesla(getNextBlockID());
|
||||
|
@ -166,10 +164,15 @@ public class ResonantInduction
|
|||
|
||||
CONFIGURATION.save();
|
||||
|
||||
GameRegistry.registerItem(itemQuantumEntangler, itemQuantumEntangler.getUnlocalizedName());
|
||||
GameRegistry.registerItem(itemCapacitor, itemCapacitor.getUnlocalizedName());
|
||||
GameRegistry.registerItem(itemLinker, itemLinker.getUnlocalizedName());
|
||||
|
||||
GameRegistry.registerBlock(blockTesla, blockTesla.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(blockMultimeter, ItemBlockMultimeter.class, blockMultimeter.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(blockEMContractor, ItemBlockContractor.class, blockEMContractor.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(blockBattery, blockBattery.getUnlocalizedName());
|
||||
GameRegistry.registerBlock(blockWire, ItemBlockWire.class, blockWire.getUnlocalizedName());
|
||||
|
||||
// Tiles
|
||||
GameRegistry.registerTileEntity(TileEntityTesla.class, blockTesla.getUnlocalizedName());
|
||||
|
@ -191,11 +194,11 @@ public class ResonantInduction
|
|||
metadata.name = NAME;
|
||||
metadata.description = "Resonant Induction is a Minecraft mod focusing on the manipulation of electricity and wireless technology. Ever wanted blazing electrical shocks flying off your evil lairs? You've came to the right place!";
|
||||
metadata.url = "http://universalelectricity.com/resonant-induction";
|
||||
metadata.logoFile = "/ri_logo.png";
|
||||
metadata.version = VERSION + BUILD_VERSION;
|
||||
metadata.authorList = Arrays.asList(new String[] { "Calclavia", "Aidancbrady" });
|
||||
metadata.logoFile = "/";
|
||||
metadata.credits = "Thanks to Archadia for the awesome assets!";
|
||||
metadata.autogenerated = true;
|
||||
metadata.autogenerated = false;
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
|
|
@ -17,7 +17,7 @@ public class BlockWire extends BlockConductor
|
|||
{
|
||||
public BlockWire(int id)
|
||||
{
|
||||
super(ResonantInduction.CONFIGURATION.getItem("wire", id).getInt(id), Material.cloth);
|
||||
super(ResonantInduction.CONFIGURATION.getBlock("wire", id).getInt(id), Material.cloth);
|
||||
this.setUnlocalizedName(ResonantInduction.PREFIX + "wire");
|
||||
this.setStepSound(soundClothFootstep);
|
||||
this.setResistance(0.2F);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package resonantinduction.wire;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
@ -14,9 +13,9 @@ import universalelectricity.core.electricity.ElectricityDisplay.ElectricUnit;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public abstract class ItemBlockWire extends ItemBlock
|
||||
public class ItemBlockWire extends ItemBlock
|
||||
{
|
||||
protected HashMap<String, Icon> icons = new HashMap<String, Icon>();
|
||||
private Icon[] icons = new Icon[EnumWire.values().length];
|
||||
|
||||
public ItemBlockWire(int id)
|
||||
{
|
||||
|
@ -46,11 +45,11 @@ public abstract class ItemBlockWire extends ItemBlock
|
|||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IconRegister par1IconRegister)
|
||||
public void registerIcons(IconRegister iconRegister)
|
||||
{
|
||||
for (int i = 0; i < EnumWire.values().length - 1; i++)
|
||||
{
|
||||
this.icons.put(this.getUnlocalizedName(new ItemStack(this.itemID, 1, i)), par1IconRegister.registerIcon(this.getUnlocalizedName(new ItemStack(this.itemID, 1, i)).replaceAll("tile.", ResonantInduction.PREFIX)));
|
||||
this.icons[i] = iconRegister.registerIcon(this.getUnlocalizedName(new ItemStack(this.itemID, 1, i)).replaceAll("tile.", ResonantInduction.PREFIX));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -58,6 +57,6 @@ public abstract class ItemBlockWire extends ItemBlock
|
|||
@SideOnly(Side.CLIENT)
|
||||
public Icon getIconFromDamage(int meta)
|
||||
{
|
||||
return this.icons.get(this.getUnlocalizedName(new ItemStack(this.itemID, 1, meta)));
|
||||
return this.icons[meta];
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue