Finished New Block Texture Layout, Renamed a few strings to make texture filenames smoother
|
|
@ -59,7 +59,7 @@ public class BlockStoneBricks extends Block {
|
|||
|
||||
for (int i = 0; i < 7; i++)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + "Bricks_" + i);
|
||||
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + ItemBlockStoneBricks.STONEBRICK_TYPES[i] + " Bricks");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class BlockStones extends Block {
|
|||
|
||||
for (int i = 0; i < 14; i++)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + "Stones_" + i);
|
||||
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + ItemBlockStones.STONE_TYPES[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,11 @@ 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 static String[] STONEBRICK_TYPES = new String[] {"Anorthosite", "Limestone", "Marble", "Migmatite", "Orthogneiss", "Slate", "Travertine"};
|
||||
|
||||
public ItemBlockStoneBricks(int par1) {
|
||||
super(par1);
|
||||
|
|
@ -17,18 +20,11 @@ public class ItemBlockStoneBricks extends ItemBlock {
|
|||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
public String getUnlocalizedName(ItemStack i){
|
||||
switch(i.getItemDamage()){
|
||||
case 0:return "AnorthositeBricks";
|
||||
case 1:return "LimestoneBricks";
|
||||
case 2:return "MarbleBricks";
|
||||
case 3:return "MigmatiteBricks";
|
||||
case 4:return "OrthogneissBricks";
|
||||
case 5:return "SlateBricks";
|
||||
case 6:return "TravertineBricks";
|
||||
default:return "";
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, STONEBRICK_TYPES.length);
|
||||
return super.getUnlocalizedName() + STONEBRICK_TYPES[meta];
|
||||
}
|
||||
|
||||
public int getMetadata(int par1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,8 +8,12 @@ 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 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) {
|
||||
super(par1);
|
||||
|
|
@ -17,25 +21,11 @@ public class ItemBlockStones extends ItemBlock {
|
|||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
public String getUnlocalizedName(ItemStack i){
|
||||
switch(i.getItemDamage()){
|
||||
case 0:return "AnorthositeSmooth";
|
||||
case 1:return "Anorthosite";
|
||||
case 2:return "LimestoneSmooth";
|
||||
case 3:return "Limestone";
|
||||
case 4:return "MarbleSmooth";
|
||||
case 5:return "Marble";
|
||||
case 6:return "MigmatiteSmooth";
|
||||
case 7:return "Migmatite";
|
||||
case 8:return "OrthogneissSmooth";
|
||||
case 9:return "Orthogneiss";
|
||||
case 10:return "SlateSmooth";
|
||||
case 11:return "Slate";
|
||||
case 12:return "TravertineSmooth";
|
||||
case 13:return "Travertine";
|
||||
default:return "";
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, STONE_TYPES.length);
|
||||
return super.getUnlocalizedName() + STONE_TYPES[meta];
|
||||
}
|
||||
|
||||
public int getMetadata(int par1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public class BlockBush extends Block implements IPlantable{
|
|||
|
||||
for (int i = 0; i < 12; i++)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + "Bush_" + i);
|
||||
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + ItemBlockBush.BUSH_TYPES[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public class BlockImbuedStone extends Block {
|
|||
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + "OreStone_" + i);
|
||||
textures[i] = iconRegister.registerIcon("MysticTextures" + ":" + ItemBlockImbuedStone.IMBUED_STONE_TYPE[i] + " Imbued Stone");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,32 +11,25 @@ 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 ItemBlockBush extends ItemBlock {
|
||||
|
||||
public static String[] BUSH_TYPES = new String[] {Strings.BUSH_NAME, Strings.POISON_BUSH_NAME, Strings.WEAKNESS_BUSH_NAME, Strings.SLOWNESS_BUSH_NAME,
|
||||
Strings.HARMING_BUSH_NAME, Strings.WITHER_BUSH_NAME, Strings.HEALTH_BUSH_NAME, Strings.SPEED_BUSH_NAME, Strings.FIRE_RESISTANCE_BUSH_NAME,
|
||||
Strings.REGEN_BUSH_NAME, Strings.NIGHT_VISION_BUSH_NAME, Strings.INVISIBILITY_BUSH_NAME};
|
||||
|
||||
public ItemBlockBush(int par1) {
|
||||
super(par1);
|
||||
setMaxDamage(0);
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
public String getUnlocalizedName(ItemStack i){
|
||||
switch(i.getItemDamage()){
|
||||
case 0:return Strings.BUSH_NAME;
|
||||
case 1:return Strings.POISON_BUSH_NAME;
|
||||
case 2:return Strings.WEAKNESS_BUSH_NAME;
|
||||
case 3:return Strings.SLOWNESS_BUSH_NAME;
|
||||
case 4:return Strings.HARMING_BUSH_NAME;
|
||||
case 5:return Strings.WITHER_BUSH_NAME;
|
||||
case 6:return Strings.HEALTH_BUSH_NAME;
|
||||
case 7:return Strings.SPEED_BUSH_NAME;
|
||||
case 8:return Strings.FIRE_RESISTANCE_BUSH_NAME;
|
||||
case 9:return Strings.REGEN_BUSH_NAME;
|
||||
case 10:return Strings.NIGHT_VISION_BUSH_NAME;
|
||||
case 11:return Strings.INVISIBILITY_BUSH_NAME;
|
||||
default:return "";
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, BUSH_TYPES.length);
|
||||
return super.getUnlocalizedName() + BUSH_TYPES[meta];
|
||||
}
|
||||
|
||||
|
||||
public int getMetadata(int par1)
|
||||
|
|
|
|||
|
|
@ -9,8 +9,11 @@ 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 ItemBlockImbuedStone extends ItemBlock {
|
||||
|
||||
public static String[] IMBUED_STONE_TYPE = new String[] {"Fire", "Water", "Earth", "Air", "Energy"};
|
||||
|
||||
public ItemBlockImbuedStone(int par1) {
|
||||
super(par1);
|
||||
|
|
@ -18,16 +21,13 @@ public class ItemBlockImbuedStone extends ItemBlock {
|
|||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
public String getUnlocalizedName(ItemStack i){
|
||||
switch(i.getItemDamage()){
|
||||
case 0:return "Fire";
|
||||
case 1:return "Water";
|
||||
case 2:return "Earth";
|
||||
case 3:return "Air";
|
||||
case 4:return "Energy";
|
||||
default:return "";
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, IMBUED_STONE_TYPE.length);
|
||||
return super.getUnlocalizedName() + IMBUED_STONE_TYPE[meta];
|
||||
}
|
||||
|
||||
|
||||
public int getMetadata(int par1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,18 +5,18 @@ public class Strings {
|
|||
//Block Names
|
||||
public static final String IMBUED_STONE_NAME = "imbuedStone";
|
||||
|
||||
public static final String BUSH_NAME = "bush";
|
||||
public static final String POISON_BUSH_NAME = "poisonBush";
|
||||
public static final String WEAKNESS_BUSH_NAME = "weaknessBush";
|
||||
public static final String SLOWNESS_BUSH_NAME = "slownessBush";
|
||||
public static final String HARMING_BUSH_NAME = "harmingBush";
|
||||
public static final String WITHER_BUSH_NAME = "witherBush";
|
||||
public static final String HEALTH_BUSH_NAME = "healthBush";
|
||||
public static final String SPEED_BUSH_NAME = "speedBush";
|
||||
public static final String FIRE_RESISTANCE_BUSH_NAME = "fireResistanceBush";
|
||||
public static final String REGEN_BUSH_NAME = "regenBush";
|
||||
public static final String NIGHT_VISION_BUSH_NAME = "nightVisionBush";
|
||||
public static final String INVISIBILITY_BUSH_NAME = "invisibilityBush";
|
||||
public static final String BUSH_NAME = "Bush";
|
||||
public static final String POISON_BUSH_NAME = "Poisonous Bush";
|
||||
public static final String WEAKNESS_BUSH_NAME = "Weakness Bush";
|
||||
public static final String SLOWNESS_BUSH_NAME = "Slowness Bush";
|
||||
public static final String HARMING_BUSH_NAME = "Harming Bush";
|
||||
public static final String WITHER_BUSH_NAME = "Wither Bush";
|
||||
public static final String HEALTH_BUSH_NAME = "Health Bush";
|
||||
public static final String SPEED_BUSH_NAME = "Speed Bush";
|
||||
public static final String FIRE_RESISTANCE_BUSH_NAME = "Fire Resistance Bush";
|
||||
public static final String REGEN_BUSH_NAME = "Regen Bush";
|
||||
public static final String NIGHT_VISION_BUSH_NAME = "Night Vision Bush";
|
||||
public static final String INVISIBILITY_BUSH_NAME = "Invisibility Bush";
|
||||
|
||||
public static final String LIGHT_CUBE_NAME = "lightCube";
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 201 B |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 422 B |
|
Before Width: | Height: | Size: 423 B |
|
Before Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 438 B |
|
Before Width: | Height: | Size: 423 B |
|
Before Width: | Height: | Size: 421 B |
|
Before Width: | Height: | Size: 409 B |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 7.9 KiB |
|
|
@ -1,38 +0,0 @@
|
|||
0*2
|
||||
1*2
|
||||
2*2
|
||||
3*2
|
||||
4*2
|
||||
5*2
|
||||
6*2
|
||||
7*2
|
||||
8*2
|
||||
9*2
|
||||
10*2
|
||||
11*2
|
||||
12*2
|
||||
13*2
|
||||
14*2
|
||||
15*2
|
||||
16*2
|
||||
17*2
|
||||
18*2
|
||||
19*2
|
||||
18*2
|
||||
17*2
|
||||
16*2
|
||||
15*2
|
||||
14*2
|
||||
13*2
|
||||
12*2
|
||||
11*2
|
||||
10*2
|
||||
9*2
|
||||
8*2
|
||||
7*2
|
||||
6*2
|
||||
5*2
|
||||
4*2
|
||||
3*2
|
||||
2*2
|
||||
1*2
|
||||
|
Before Width: | Height: | Size: 9.5 KiB |
|
|
@ -1,38 +0,0 @@
|
|||
0*2
|
||||
1*2
|
||||
2*2
|
||||
3*2
|
||||
4*2
|
||||
5*2
|
||||
6*2
|
||||
7*2
|
||||
8*2
|
||||
9*2
|
||||
10*2
|
||||
11*2
|
||||
12*2
|
||||
13*2
|
||||
14*2
|
||||
15*2
|
||||
16*2
|
||||
17*2
|
||||
18*2
|
||||
19*2
|
||||
18*2
|
||||
17*2
|
||||
16*2
|
||||
15*2
|
||||
14*2
|
||||
13*2
|
||||
12*2
|
||||
11*2
|
||||
10*2
|
||||
9*2
|
||||
8*2
|
||||
7*2
|
||||
6*2
|
||||
5*2
|
||||
4*2
|
||||
3*2
|
||||
2*2
|
||||
1*2
|
||||
|
Before Width: | Height: | Size: 9.4 KiB |
|
|
@ -1,38 +0,0 @@
|
|||
0*2
|
||||
1*2
|
||||
2*2
|
||||
3*2
|
||||
4*2
|
||||
5*2
|
||||
6*2
|
||||
7*2
|
||||
8*2
|
||||
9*2
|
||||
10*2
|
||||
11*2
|
||||
12*2
|
||||
13*2
|
||||
14*2
|
||||
15*2
|
||||
16*2
|
||||
17*2
|
||||
18*2
|
||||
19*2
|
||||
18*2
|
||||
17*2
|
||||
16*2
|
||||
15*2
|
||||
14*2
|
||||
13*2
|
||||
12*2
|
||||
11*2
|
||||
10*2
|
||||
9*2
|
||||
8*2
|
||||
7*2
|
||||
6*2
|
||||
5*2
|
||||
4*2
|
||||
3*2
|
||||
2*2
|
||||
1*2
|
||||
|
Before Width: | Height: | Size: 8.8 KiB |
|
|
@ -1,38 +0,0 @@
|
|||
0*2
|
||||
1*2
|
||||
2*2
|
||||
3*2
|
||||
4*2
|
||||
5*2
|
||||
6*2
|
||||
7*2
|
||||
8*2
|
||||
9*2
|
||||
10*2
|
||||
11*2
|
||||
12*2
|
||||
13*2
|
||||
14*2
|
||||
15*2
|
||||
16*2
|
||||
17*2
|
||||
18*2
|
||||
19*2
|
||||
18*2
|
||||
17*2
|
||||
16*2
|
||||
15*2
|
||||
14*2
|
||||
13*2
|
||||
12*2
|
||||
11*2
|
||||
10*2
|
||||
9*2
|
||||
8*2
|
||||
7*2
|
||||
6*2
|
||||
5*2
|
||||
4*2
|
||||
3*2
|
||||
2*2
|
||||
1*2
|
||||
|
Before Width: | Height: | Size: 6.4 KiB |
|
|
@ -1,38 +0,0 @@
|
|||
0*2
|
||||
1*2
|
||||
2*2
|
||||
3*2
|
||||
4*2
|
||||
5*2
|
||||
6*2
|
||||
7*2
|
||||
8*2
|
||||
9*2
|
||||
10*2
|
||||
11*2
|
||||
12*2
|
||||
13*2
|
||||
14*2
|
||||
15*2
|
||||
16*2
|
||||
17*2
|
||||
18*2
|
||||
19*2
|
||||
18*2
|
||||
17*2
|
||||
16*2
|
||||
15*2
|
||||
14*2
|
||||
13*2
|
||||
12*2
|
||||
11*2
|
||||
10*2
|
||||
9*2
|
||||
8*2
|
||||
7*2
|
||||
6*2
|
||||
5*2
|
||||
4*2
|
||||
3*2
|
||||
2*2
|
||||
1*2
|
||||
|
Before Width: | Height: | Size: 424 B |
|
Before Width: | Height: | Size: 237 B |
|
Before Width: | Height: | Size: 625 B |
|
Before Width: | Height: | Size: 239 B |
|
Before Width: | Height: | Size: 617 B |
|
Before Width: | Height: | Size: 233 B |
|
Before Width: | Height: | Size: 589 B |
|
Before Width: | Height: | Size: 237 B |
|
Before Width: | Height: | Size: 607 B |
|
Before Width: | Height: | Size: 225 B |
|
Before Width: | Height: | Size: 657 B |
|
Before Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 598 B |
|
Before Width: | Height: | Size: 233 B |
|
Before Width: | Height: | Size: 233 B |
|
Before Width: | Height: | Size: 597 B |
|
Before Width: | Height: | Size: 597 B |
|
Before Width: | Height: | Size: 290 B |
|
Before Width: | Height: | Size: 430 B |
|
Before Width: | Height: | Size: 298 B |
|
Before Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 324 B |
|
Before Width: | Height: | Size: 340 B |
|
Before Width: | Height: | Size: 325 B |
|
Before Width: | Height: | Size: 342 B |
|
Before Width: | Height: | Size: 263 B |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 356 B |
|
Before Width: | Height: | Size: 436 B |
|
Before Width: | Height: | Size: 273 B |
|
Before Width: | Height: | Size: 230 B |
|
Before Width: | Height: | Size: 263 B |
|
Before Width: | Height: | Size: 576 B |
|
Before Width: | Height: | Size: 303 B |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 279 B |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |