Use lower case domain, as expected from Minecraft
This commit is contained in:
parent
1f385fecc7
commit
1358a5d8f7
24 changed files with 28 additions and 107 deletions
|
|
@ -167,7 +167,7 @@ public class BlockBase extends Block {
|
|||
public void registerIcons(IconRegister register) {
|
||||
textures = new Icon[16];
|
||||
for (int i = 0; i < ItemBase.BLOCK_NAMES.length; i++) {
|
||||
textures[i] = register.registerIcon("MysticMods:" + ItemBase.BLOCK_NAMES[i]);
|
||||
textures[i] = register.registerIcon("mysticmods:" + ItemBase.BLOCK_NAMES[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ public class ItemAxes extends ItemAxe {
|
|||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ public class ItemHoes extends ItemHoe {
|
|||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ public class ItemPickaxes extends ItemPickaxe {
|
|||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,6 +48,6 @@ public class ItemResource extends Item {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
icons = new Icon[RESOURCE_TYPES.length];
|
||||
for (int i = 0; i < RESOURCE_TYPES.length; ++i)
|
||||
icons[i] = iconRegister.registerIcon("MysticMods:" + RESOURCE_TYPES[i]);
|
||||
icons[i] = iconRegister.registerIcon("mysticmods:" + RESOURCE_TYPES[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,6 @@ public class ItemSatchel extends Item {
|
|||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ public class ItemShovels extends ItemSpade {
|
|||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ public class ItemSwords extends ItemSword {
|
|||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
||||
}
|
||||
}
|
||||
|
|
@ -21,7 +21,7 @@ public class BlockPlanks extends BlockMulti {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
textures = new Icon[ItemPlanks.PLANK_TYPE.length];
|
||||
for (int i = 0; i < textures.length; i++) {
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemPlanks.PLANK_TYPE[i]);
|
||||
textures[i] = iconRegister.registerIcon("mysticmods:" + ItemPlanks.PLANK_TYPE[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public class BlockReinforced extends BlockMulti {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
textures = new Icon[ItemReinforced.BRICK_TYPE.length];
|
||||
for (int i = 0; i < textures.length; i++) {
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemReinforced.BRICK_TYPE[i]);
|
||||
textures[i] = iconRegister.registerIcon("mysticmods:" + ItemReinforced.BRICK_TYPE[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public class BlockStoneBricks extends BlockMulti {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
textures = new Icon[ItemStoneBricks.STONEBRICK_TYPES.length];
|
||||
for (int i = 0; i < textures.length; i++) {
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemStoneBricks.STONEBRICK_TYPES[i]);
|
||||
textures[i] = iconRegister.registerIcon("mysticmods:" + ItemStoneBricks.STONEBRICK_TYPES[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public class BlockStones extends BlockMulti {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
textures = new Icon[ItemStones.STONE_TYPES.length];
|
||||
for (int i = 0; i < textures.length; i++) {
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemStones.STONE_TYPES[i]);
|
||||
textures[i] = iconRegister.registerIcon("mysticmods:" + ItemStones.STONE_TYPES[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ public class BlockBush extends BlockFlower {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
textures = new Icon[16];
|
||||
for (int i = 0; i < 12; i++) {
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemBush.BUSH_TYPES[i]);
|
||||
textures[i] = iconRegister.registerIcon("mysticmods:" + ItemBush.BUSH_TYPES[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,11 +60,6 @@ public class BlockImbuedStone extends Block {
|
|||
return ItemHandler.imbuedShard.itemID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int idPicked(World par1World, int par2, int par3, int par4) {
|
||||
return blockID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOpaqueCube() {
|
||||
return false;
|
||||
|
|
@ -92,7 +87,7 @@ public class BlockImbuedStone extends Block {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
textures = new Icon[16];
|
||||
for (int i = 0; i < 5; i++) {
|
||||
textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemImbuedStone.IMBUED_STONE_TYPE[i] + " Imbued Stone");
|
||||
textures[i] = iconRegister.registerIcon("mysticmods" + ":" + ItemImbuedStone.IMBUED_STONE_TYPE[i] + " Imbued Stone");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public class BlockLightCube extends Block {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
this.blockIcon = iconRegister.registerIcon("MysticMods" + ":" + "lightCube");
|
||||
this.blockIcon = iconRegister.registerIcon("mysticmods:" + "lightCube");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public class BlockPillar extends Block {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
this.blockIcon = iconRegister.registerIcon("MysticMods" + ":" + "Pillar");
|
||||
this.blockIcon = iconRegister.registerIcon("mysticmods:" + "Pillar");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import mysticworld.MysticWorld;
|
|||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.world.World;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
|
@ -26,11 +25,6 @@ public class BlockPlatform extends Block {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEntityWalking(World world, int x, int y, int z, Entity entity) {
|
||||
super.onEntityWalking(world, x, y, z, entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void randomDisplayTick(World world, int x, int y, int z, Random rand) {
|
||||
int block = BlockHandler.pillar.blockID;
|
||||
|
|
@ -51,7 +45,7 @@ public class BlockPlatform extends Block {
|
|||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
this.blockIcon = iconRegister.registerIcon("MysticMods" + ":" + "Platform");
|
||||
this.blockIcon = iconRegister.registerIcon("mysticmods:" + "Platform");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -9,39 +9,22 @@ import net.minecraft.item.ItemStack;
|
|||
|
||||
public class ItemArmorAdamantine extends ItemArmor {
|
||||
int ArmorType;
|
||||
String ArmorFile_1;
|
||||
String ArmorFile_2;
|
||||
|
||||
public ItemArmorAdamantine(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
|
||||
super(par1, par2EnumArmorMaterial, par3, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(3000);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/MysticMods/textures/armor/adamantine_1.png";
|
||||
this.ArmorFile_2 = "/MysticMods/textures/armor/adamantine_2.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "MysticMods:textures" + "/models/armor/Adamantine_layer_" + suffix + ".png";
|
||||
return "mysticmods:textures" + "/models/armor/Adamantine_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
switch (ArmorType) {
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_0");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_1");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_2");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_3");
|
||||
break;
|
||||
}
|
||||
itemIcon = iconRegister.registerIcon("mysticmods:AdamantineArmor_" + ArmorType);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,22 +13,18 @@ import net.minecraft.world.World;
|
|||
|
||||
public class ItemArmorIridium extends ItemArmor {
|
||||
int ArmorType;
|
||||
String ArmorFile_1;
|
||||
String ArmorFile_2;
|
||||
|
||||
public ItemArmorIridium(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
|
||||
super(par1, par2EnumArmorMaterial, par3, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(4000);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/assets/MysticMods/textures/armor/iridium_1.png";
|
||||
this.ArmorFile_2 = "/assets/MysticMods/textures/armor/iridium_2.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "MysticMods:textures" + "/models/armor/Iridium_layer_" + suffix + ".png";
|
||||
return "mysticmods:textures" + "/models/armor/Iridium_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -64,19 +60,6 @@ public class ItemArmorIridium extends ItemArmor {
|
|||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
switch (ArmorType) {
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_0");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_1");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_2");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_3");
|
||||
break;
|
||||
}
|
||||
itemIcon = iconRegister.registerIcon("mysticmods:IridiumArmor_" + ArmorType);
|
||||
}
|
||||
}
|
||||
|
|
@ -9,39 +9,22 @@ import net.minecraft.item.ItemStack;
|
|||
|
||||
public class ItemArmorMithril extends ItemArmor {
|
||||
int ArmorType;
|
||||
String ArmorFile_1;
|
||||
String ArmorFile_2;
|
||||
|
||||
public ItemArmorMithril(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
|
||||
super(par1, par2EnumArmorMaterial, par3, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(500);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/assets/MysticMods/textures/armor/mithril_1.png";
|
||||
this.ArmorFile_2 = "/assets/MysticMods/textures/armor/mithril_2.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "MysticMods:textures" + "/models/armor/Mithril_layer_" + suffix + ".png";
|
||||
return "mysticmods:textures" + "/models/armor/Mithril_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
switch (ArmorType) {
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:MithrilArmor_0");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:MithrilArmor_1");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:MithrilArmor_2");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:MithrilArmor_3");
|
||||
break;
|
||||
}
|
||||
itemIcon = iconRegister.registerIcon("mysticmods:MithrilArmor_" + ArmorType);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,39 +9,22 @@ import net.minecraft.item.ItemStack;
|
|||
|
||||
public class ItemArmorVerdite extends ItemArmor {
|
||||
int ArmorType;
|
||||
String ArmorFile_1;
|
||||
String ArmorFile_2;
|
||||
|
||||
public ItemArmorVerdite(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
|
||||
super(par1, par2EnumArmorMaterial, par3, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(262);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/assets/MysticMods/textures/armor/verdite_1.png";
|
||||
this.ArmorFile_2 = "/assets/MysticMods/textures/armor/verdite_2.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "MysticMods:textures" + "/models/armor/Verdite_layer_" + suffix + ".png";
|
||||
return "mysticmods:textures" + "/models/armor/Verdite_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
switch (ArmorType) {
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_0");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_1");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_2");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_3");
|
||||
break;
|
||||
}
|
||||
itemIcon = iconRegister.registerIcon("mysticmods:VerditeArmor_" + ArmorType);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class ItemBushFruit extends ItemFood {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
icons = new Icon[FRUIT_TYPES.length];
|
||||
for (int i = 0; i < FRUIT_TYPES.length; ++i) {
|
||||
icons[i] = iconRegister.registerIcon("MysticMods:Fruit" + FRUIT_TYPES[i]);
|
||||
icons[i] = iconRegister.registerIcon("mysticmods:Fruit" + FRUIT_TYPES[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public class ItemImbuedShard extends Item {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
icons = new Icon[SHARD_TYPES.length];
|
||||
for (int i = 0; i < SHARD_TYPES.length; ++i) {
|
||||
icons[i] = iconRegister.registerIcon("MysticMods:Shard" + SHARD_TYPES[i]);
|
||||
icons[i] = iconRegister.registerIcon("mysticmods:Shard" + SHARD_TYPES[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package mysticworld.util;
|
||||
|
||||
public class Reference {
|
||||
public static final String MOD_ID = "MysticWorld";
|
||||
public static final String MOD_ID = "mysticworld";
|
||||
public static final String MOD_NAME = "Mystic World";
|
||||
public static final String VERSION_NUMBER = "0.1a";
|
||||
public static final String SERVER_PROXY_CLASS = "mysticworld.CommonProxy";
|
||||
|
|
|
|||
Loading…
Reference in a new issue