This commit is contained in:
Adubbz 2013-03-31 19:52:16 +11:00
commit 53cb24154b
81 changed files with 607 additions and 204 deletions

View file

@ -1,2 +1,7 @@
Version 0.4.8 '31-3-2013'
- fixed smoldering grass texture
- fixed flower achievement?
- fixed Giant red flower texture
Version 0.4.7 '30-3-2013' Version 0.4.7 '30-3-2013'
- updated to minecraft 1.5.1 - updated to minecraft 1.5.1

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 613 B

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 578 B

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -26,6 +27,7 @@ public class BlockAcaciaLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"acacia"}; public static final String[] LEAF_TYPES = new String[] {"acacia"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockAcaciaLeaves(int par1) public BlockAcaciaLeaves(int par1)
{ {
@ -35,6 +37,18 @@ public class BlockAcaciaLeaves extends BlockLeavesBase
this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty); this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty);
} }
@Override
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:acacialeaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:acacialeaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
}
public int getBlockColor() public int getBlockColor()
{ {
double var1 = 0.5D; double var1 = 0.5D;
@ -300,14 +314,9 @@ public class BlockAcaciaLeaves extends BlockLeavesBase
} }
@Override @Override
public boolean isOpaqueCube() { public boolean isOpaqueCube()
return Block.leaves.isOpaqueCube();
}
@Override
public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:acacialeaves2") : par1IconRegister.registerIcon("BiomesOPlenty:acacialeaves1")); return Block.leaves.isOpaqueCube();
} }
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)

View file

@ -9,18 +9,15 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockAcaciaLog extends Block public class BlockAcaciaLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"acacia"}; public static final String[] woodType = new String[] {"acacia"};
private Icon[] blockIcon = new Icon[2];
public BlockAcaciaLog(int par1) public BlockAcaciaLog(int par1)
{ {
@ -32,7 +29,20 @@ public class BlockAcaciaLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:acacialog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:acacialog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**
@ -117,16 +127,6 @@ public class BlockAcaciaLog extends Block
return var10 | var11; return var10 | var11;
} }
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
/*public int getBlockTextureFromSideAndMetadata(int par1, int par2)
{
int var3 = par2 & 12;
int var4 = par2 & 3;
return var3 == 0 && (par1 == 1 || par1 == 0) ? 255 : (var3 == 4 && (par1 == 5 || par1 == 4) ? 255 : (var3 == 8 && (par1 == 2 || par1 == 3) ? 255 : (var4 == 1 ? 116 : (var4 == 2 ? 117 : (var4 == 3 ? 153 : 44)))));
}*/
/** /**
* Determines the damage on the item the block drops. Used in cloth and wood. * Determines the damage on the item the block drops. Used in cloth and wood.
*/ */

View file

@ -19,15 +19,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenAcacia; import tdwp_ftw.biomesop.worldgen.WorldGenAcacia;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockAcaciaSapling extends BlockSapling public class BlockAcaciaSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"acacia"}; public static final String[] WOOD_TYPES = new String[] {"acacia"};
private Icon[] blockIcon = new Icon[1];
public BlockAcaciaSapling(int par1) public BlockAcaciaSapling(int par1)
{ {
@ -40,7 +37,12 @@ public class BlockAcaciaSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:acaciasapling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:acaciasapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -14,10 +14,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockAcaciaSlab extends BlockHalfSlab public class BlockAcaciaSlab extends BlockHalfSlab
{ {

View file

@ -8,10 +8,6 @@ import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockAcaciaStairs extends BlockStairs public class BlockAcaciaStairs extends BlockStairs
{ {

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -25,6 +26,7 @@ public class BlockAppleLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"apple"}; public static final String[] LEAF_TYPES = new String[] {"apple"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockAppleLeaves(int par1) public BlockAppleLeaves(int par1)
{ {
@ -37,7 +39,13 @@ public class BlockAppleLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:appleleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:appleleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:appleleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:appleleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -25,6 +26,7 @@ public class BlockAppleLeavesFruitless extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"apple"}; public static final String[] LEAF_TYPES = new String[] {"apple"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockAppleLeavesFruitless(int par1) public BlockAppleLeavesFruitless(int par1)
{ {
@ -34,6 +36,18 @@ public class BlockAppleLeavesFruitless extends BlockLeavesBase
this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty); this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty);
} }
@Override
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:appleleaves3");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:appleleaves4");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
}
/** /**
* ejects contained items into the world, and notifies neighbours of an update, as appropriate * ejects contained items into the world, and notifies neighbours of an update, as appropriate
*/ */
@ -269,12 +283,6 @@ public class BlockAppleLeavesFruitless extends BlockLeavesBase
return Block.leaves.isOpaqueCube(); return Block.leaves.isOpaqueCube();
} }
@Override
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:appleLeavesFruitlessOpaque") : par1IconRegister.registerIcon("BiomesOPlenty:appleLeavesFruitless"));
}
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{ {
return true; return true;

View file

@ -18,15 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenApple; import tdwp_ftw.biomesop.worldgen.WorldGenApple;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockAppleSapling extends BlockSapling public class BlockAppleSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"apple"}; public static final String[] WOOD_TYPES = new String[] {"apple"};
private Icon[] blockIcon = new Icon[1];
public BlockAppleSapling(int par1) public BlockAppleSapling(int par1)
{ {
@ -39,7 +36,12 @@ public class BlockAppleSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:applesapling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:applesapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -13,14 +13,11 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockAutumnLeaves extends BlockLeavesBase public class BlockAutumnLeaves extends BlockLeavesBase
{ {
@ -31,6 +28,7 @@ public class BlockAutumnLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"autumn"}; public static final String[] LEAF_TYPES = new String[] {"autumn"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockAutumnLeaves(int par1) public BlockAutumnLeaves(int par1)
{ {
@ -43,7 +41,13 @@ public class BlockAutumnLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:autumnleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:autumnleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:autumnleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:autumnleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -13,14 +13,11 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockBambooLeaves extends BlockLeavesBase public class BlockBambooLeaves extends BlockLeavesBase
{ {
@ -31,6 +28,7 @@ public class BlockBambooLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"bamboo"}; public static final String[] LEAF_TYPES = new String[] {"bamboo"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockBambooLeaves(int par1) public BlockBambooLeaves(int par1)
{ {
@ -43,7 +41,13 @@ public class BlockBambooLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:bambooleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:bambooleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:bambooleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:bambooleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -26,6 +27,7 @@ public class BlockBlueLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"magic"}; public static final String[] LEAF_TYPES = new String[] {"magic"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockBlueLeaves(int par1) public BlockBlueLeaves(int par1)
{ {
@ -38,7 +40,13 @@ public class BlockBlueLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:blueleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:blueleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:blueleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:blueleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6) public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)

View file

@ -18,15 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenDeadTree2; import tdwp_ftw.biomesop.worldgen.WorldGenDeadTree2;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockBrownSapling extends BlockSapling public class BlockBrownSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"brown"}; public static final String[] WOOD_TYPES = new String[] {"brown"};
private Icon[] blockIcon = new Icon[1];
public BlockBrownSapling(int par1) public BlockBrownSapling(int par1)
{ {
@ -39,7 +36,12 @@ public class BlockBrownSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:brownsappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:brownsapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -9,18 +9,15 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockCherryLog extends Block public class BlockCherryLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"cherry"}; public static final String[] woodType = new String[] {"cherry"};
private Icon[] blockIcon = new Icon[2];
public BlockCherryLog(int par1) public BlockCherryLog(int par1)
{ {
@ -32,7 +29,20 @@ public class BlockCherryLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:cherrylog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:cherrylog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -13,15 +13,11 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockDarkLeaves extends BlockLeavesBase public class BlockDarkLeaves extends BlockLeavesBase
{ {
/** /**
@ -31,6 +27,7 @@ public class BlockDarkLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"dark"}; public static final String[] LEAF_TYPES = new String[] {"dark"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockDarkLeaves(int par1) public BlockDarkLeaves(int par1)
{ {
@ -43,7 +40,13 @@ public class BlockDarkLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:darkleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:darkleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:darkleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:darkleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -9,18 +9,15 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockDarkLog extends Block public class BlockDarkLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"dark"}; public static final String[] woodType = new String[] {"dark"};
private Icon[] blockIcon = new Icon[2];
public BlockDarkLog(int par1) public BlockDarkLog(int par1)
{ {
@ -32,7 +29,20 @@ public class BlockDarkLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:darklog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:darklog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -19,15 +19,12 @@ import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenOminous1; import tdwp_ftw.biomesop.worldgen.WorldGenOminous1;
import tdwp_ftw.biomesop.worldgen.WorldGenOminous2; import tdwp_ftw.biomesop.worldgen.WorldGenOminous2;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public class BlockDarkSapling extends BlockSapling public class BlockDarkSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"dark"}; public static final String[] WOOD_TYPES = new String[] {"dark"};
private Icon[] blockIcon = new Icon[1];
public BlockDarkSapling(int par1) public BlockDarkSapling(int par1)
{ {
@ -40,7 +37,12 @@ public class BlockDarkSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:darksappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:darksapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -18,11 +18,6 @@ public class BlockDarkSlab extends BlockHalfSlab
/** The type of tree this slab came from. */ /** The type of tree this slab came from. */
public static final String[] woodType = new String[] {"dark"}; public static final String[] woodType = new String[] {"dark"};
//==============================================================
//==============================================================
//==============================================================
//==============================================================
public BlockDarkSlab(int par1, boolean par2) public BlockDarkSlab(int par1, boolean par2)
{ {
super(par1, par2, Material.wood); super(par1, par2, Material.wood);

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -26,6 +27,7 @@ public class BlockDeadLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"dead"}; public static final String[] LEAF_TYPES = new String[] {"dead"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockDeadLeaves(int par1) public BlockDeadLeaves(int par1)
{ {
@ -38,7 +40,13 @@ public class BlockDeadLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:acacialeaves2") : par1IconRegister.registerIcon("BiomesOPlenty:acacialeaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:deadleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:deadleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -9,6 +9,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -16,8 +17,7 @@ public class BlockDeadLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"dead"}; public static final String[] woodType = new String[] {"dead"};
private Icon[] blockIcon = new Icon[2];
//===================================
public BlockDeadLog(int par1) public BlockDeadLog(int par1)
{ {
@ -29,7 +29,20 @@ public class BlockDeadLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:deadlog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:deadlog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -6,6 +6,7 @@ import tdwp_ftw.biomesop.mod_BiomesOPlenty;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
@ -26,6 +27,12 @@ public class BlockDesertGrass extends Block
this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty); this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty);
} }
@Override
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:desertgrass");
}
public BlockDesertGrass(int par1) public BlockDesertGrass(int par1)
{ {
this(par1, Material.plants); this(par1, Material.plants);

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -25,6 +26,7 @@ public class BlockFirLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"fir"}; public static final String[] LEAF_TYPES = new String[] {"fir"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockFirLeaves(int par1) public BlockFirLeaves(int par1)
{ {
@ -37,7 +39,13 @@ public class BlockFirLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:firleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:firleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:firleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:firleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -9,15 +9,15 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
//=======================================
public class BlockFirLog extends Block public class BlockFirLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"fir"}; public static final String[] woodType = new String[] {"fir"};
private Icon[] blockIcon = new Icon[2];
public BlockFirLog(int par1) public BlockFirLog(int par1)
{ {
@ -29,7 +29,20 @@ public class BlockFirLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:firlog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:firlog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -18,12 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenTaiga9; import tdwp_ftw.biomesop.worldgen.WorldGenTaiga9;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockFirSapling extends BlockSapling public class BlockFirSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"fir"}; public static final String[] WOOD_TYPES = new String[] {"fir"};
private Icon[] blockIcon = new Icon[1];
//========================================
public BlockFirSapling(int par1) public BlockFirSapling(int par1)
{ {
@ -36,7 +36,12 @@ public class BlockFirSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:firsappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:firsapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -13,7 +13,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
//==============================================
public class BlockFirSlab extends BlockHalfSlab public class BlockFirSlab extends BlockHalfSlab
{ {

View file

@ -9,6 +9,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -16,8 +17,7 @@ public class BlockGiantFlowerStem extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"giantstem"}; public static final String[] woodType = new String[] {"giantstem"};
private Icon[] blockIcon = new Icon[2];
//===========================================
public BlockGiantFlowerStem(int par1) public BlockGiantFlowerStem(int par1)
{ {
@ -29,7 +29,20 @@ public class BlockGiantFlowerStem extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:bigflowerstem"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:stemTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:bigflowerstem");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**
@ -114,16 +127,6 @@ public class BlockGiantFlowerStem extends Block
return var10 | var11; return var10 | var11;
} }
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
/*public int getBlockTextureFromSideAndMetadata(int par1, int par2)
{
int var3 = par2 & 12;
int var4 = par2 & 3;
return var3 == 0 && (par1 == 1 || par1 == 0) ? 254 : (var3 == 4 && (par1 == 5 || par1 == 4) ? 254 : (var3 == 8 && (par1 == 2 || par1 == 3) ? 254 : (var4 == 1 ? 116 : (var4 == 2 ? 117 : (var4 == 3 ? 153 : 48)))));
}*/
/** /**
* Determines the damage on the item the block drops. Used in cloth and wood. * Determines the damage on the item the block drops. Used in cloth and wood.
*/ */

View file

@ -8,6 +8,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -15,6 +16,8 @@ import net.minecraft.world.World;
public class BlockHolyGrass extends Block public class BlockHolyGrass extends Block
{ {
private Icon[] blockIcon = new Icon[6];
public BlockHolyGrass(int par1) public BlockHolyGrass(int par1)
{ {
super(par1, Material.grass); super(par1, Material.grass);
@ -25,16 +28,21 @@ public class BlockHolyGrass extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:holygrass1"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:holystone");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:holygrass1");
this.blockIcon[2] = par1IconRegister.registerIcon("BiomesOPlenty:holygrass2");
this.blockIcon[3] = par1IconRegister.registerIcon("BiomesOPlenty:holygrass2");
this.blockIcon[4] = par1IconRegister.registerIcon("BiomesOPlenty:holygrass2");
this.blockIcon[5] = par1IconRegister.registerIcon("BiomesOPlenty:holygrass2");
} }
/** /**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/ */
/*public int getBlockTextureFromSideAndMetadata(int par1, int par2) public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{ {
return par1 == 1 ? 29 : (par1 == 0 ? 27 : 28); return blockIcon[par1];
}*/ }
/** /**
* Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side * Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -26,6 +27,7 @@ public class BlockHolyLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"holy"}; public static final String[] LEAF_TYPES = new String[] {"holy"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockHolyLeaves(int par1) public BlockHolyLeaves(int par1)
{ {
@ -38,7 +40,13 @@ public class BlockHolyLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:holyleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:holyleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:holyleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:holyleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**
* ejects contained items into the world, and notifies neighbours of an update, as appropriate * ejects contained items into the world, and notifies neighbours of an update, as appropriate

View file

@ -9,6 +9,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -16,6 +17,7 @@ public class BlockHolyLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"holy"}; public static final String[] woodType = new String[] {"holy"};
private Icon[] blockIcon = new Icon[2];
public BlockHolyLog(int par1) public BlockHolyLog(int par1)
{ {
@ -27,7 +29,20 @@ public class BlockHolyLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:holylog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:holylog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenPromisedTree; import tdwp_ftw.biomesop.worldgen.WorldGenPromisedTree;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockHolySapling extends BlockSapling public class BlockHolySapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"holy"}; public static final String[] WOOD_TYPES = new String[] {"holy"};
private Icon[] blockIcon = new Icon[1];
public BlockHolySapling(int par1) public BlockHolySapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockHolySapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:holysappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:holysapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -9,6 +9,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -16,6 +17,7 @@ public class BlockMagicLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"magic"}; public static final String[] woodType = new String[] {"magic"};
private Icon[] blockIcon = new Icon[2];
public BlockMagicLog(int par1) public BlockMagicLog(int par1)
{ {
@ -26,7 +28,20 @@ public class BlockMagicLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:magiclog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:magiclog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenMystic2; import tdwp_ftw.biomesop.worldgen.WorldGenMystic2;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockMagicSapling extends BlockSapling public class BlockMagicSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"magic"}; public static final String[] WOOD_TYPES = new String[] {"magic"};
private Icon[] blockIcon = new Icon[1];
public BlockMagicSapling(int par1) public BlockMagicSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockMagicSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:magicsappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:magicsapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -26,6 +27,7 @@ public class BlockMangroveLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"mangrove"}; public static final String[] LEAF_TYPES = new String[] {"mangrove"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockMangroveLeaves(int par1) public BlockMangroveLeaves(int par1)
{ {
@ -38,7 +40,13 @@ public class BlockMangroveLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:mangroveleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:mangroveleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:mangroveleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:mangroveleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
public int getBlockColor() public int getBlockColor()

View file

@ -9,6 +9,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -16,6 +17,7 @@ public class BlockMangroveLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"mangrove"}; public static final String[] woodType = new String[] {"mangrove"};
private Icon[] blockIcon = new Icon[2];
public BlockMangroveLog(int par1) public BlockMangroveLog(int par1)
{ {
@ -27,7 +29,20 @@ public class BlockMangroveLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:mangrovelog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:mangrovelog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenMangrove; import tdwp_ftw.biomesop.worldgen.WorldGenMangrove;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockMangroveSapling extends BlockSapling public class BlockMangroveSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"mangrove"}; public static final String[] WOOD_TYPES = new String[] {"mangrove"};
private Icon[] blockIcon = new Icon[1];
public BlockMangroveSapling(int par1) public BlockMangroveSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockMangroveSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:mangrovesappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:mangrovesapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -25,6 +26,7 @@ public class BlockOrangeLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"orange"}; public static final String[] LEAF_TYPES = new String[] {"orange"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockOrangeLeaves(int par1) public BlockOrangeLeaves(int par1)
{ {
@ -37,7 +39,13 @@ public class BlockOrangeLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:orangeleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:orangeleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:orangeleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:orangeleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenAutumn2; import tdwp_ftw.biomesop.worldgen.WorldGenAutumn2;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockOrangeSapling extends BlockSapling public class BlockOrangeSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"orange"}; public static final String[] WOOD_TYPES = new String[] {"orange"};
private Icon[] blockIcon = new Icon[1];
public BlockOrangeSapling(int par1) public BlockOrangeSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockOrangeSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:acacialeaves2"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:orangesapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -8,11 +8,14 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
public class BlockOriginGrass extends Block public class BlockOriginGrass extends Block
{ {
private Icon[] blockIcon = new Icon[6];
public BlockOriginGrass(int par1) public BlockOriginGrass(int par1)
{ {
super(par1, Material.grass); super(par1, Material.grass);
@ -23,16 +26,21 @@ public class BlockOriginGrass extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:origingrass1"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:origingrass3");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:origingrass1");
this.blockIcon[2] = par1IconRegister.registerIcon("BiomesOPlenty:origingrass2");
this.blockIcon[3] = par1IconRegister.registerIcon("BiomesOPlenty:origingrass2");
this.blockIcon[4] = par1IconRegister.registerIcon("BiomesOPlenty:origingrass2");
this.blockIcon[5] = par1IconRegister.registerIcon("BiomesOPlenty:origingrass2");
} }
/** /**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/ */
/*public int getBlockTextureFromSideAndMetadata(int par1, int par2) public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{ {
return par1 == 1 ? 32 : (par1 == 0 ? 34 : 33); return blockIcon[par1];
}*/ }
/** /**
* Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side * Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -25,6 +26,7 @@ public class BlockOriginLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"origin"}; public static final String[] LEAF_TYPES = new String[] {"origin"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockOriginLeaves(int par1) public BlockOriginLeaves(int par1)
{ {
@ -37,7 +39,13 @@ public class BlockOriginLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:originleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:originleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:originleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:originleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenOriginTree; import tdwp_ftw.biomesop.worldgen.WorldGenOriginTree;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockOriginSapling extends BlockSapling public class BlockOriginSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"origin"}; public static final String[] WOOD_TYPES = new String[] {"origin"};
private Icon[] blockIcon = new Icon[1];
public BlockOriginSapling(int par1) public BlockOriginSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockOriginSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:originsappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:originsapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -26,6 +27,7 @@ public class BlockPalmLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"palm"}; public static final String[] LEAF_TYPES = new String[] {"palm"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockPalmLeaves(int par1) public BlockPalmLeaves(int par1)
{ {
@ -38,7 +40,13 @@ public class BlockPalmLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:palmleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:palmleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:palmleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:palmleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
public int getBlockColor() public int getBlockColor()

View file

@ -9,6 +9,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -16,6 +17,7 @@ public class BlockPalmLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"palm"}; public static final String[] woodType = new String[] {"palm"};
private Icon[] blockIcon = new Icon[2];
public BlockPalmLog(int par1) public BlockPalmLog(int par1)
{ {
@ -27,7 +29,20 @@ public class BlockPalmLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:palmlog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:palmlog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -19,10 +19,12 @@ import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenPalmTree1; import tdwp_ftw.biomesop.worldgen.WorldGenPalmTree1;
import tdwp_ftw.biomesop.worldgen.WorldGenPalmTree3; import tdwp_ftw.biomesop.worldgen.WorldGenPalmTree3;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockPalmSapling extends BlockSapling public class BlockPalmSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"palm"}; public static final String[] WOOD_TYPES = new String[] {"palm"};
private Icon[] blockIcon = new Icon[1];
public BlockPalmSapling(int par1) public BlockPalmSapling(int par1)
{ {
@ -35,7 +37,12 @@ public class BlockPalmSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:palmsappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:palmsapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -25,6 +26,7 @@ public class BlockPinkLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"pink"}; public static final String[] LEAF_TYPES = new String[] {"pink"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockPinkLeaves(int par1) public BlockPinkLeaves(int par1)
{ {
@ -37,7 +39,13 @@ public class BlockPinkLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:pinkleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:pinkleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:pinkleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:pinkleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenCherry1; import tdwp_ftw.biomesop.worldgen.WorldGenCherry1;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockPinkSapling extends BlockSapling public class BlockPinkSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"cherry"}; public static final String[] WOOD_TYPES = new String[] {"cherry"};
private Icon[] blockIcon = new Icon[1];
public BlockPinkSapling(int par1) public BlockPinkSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockPinkSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:pinksappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:pinksapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -25,6 +26,7 @@ public class BlockRedLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"red"}; public static final String[] LEAF_TYPES = new String[] {"red"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockRedLeaves(int par1) public BlockRedLeaves(int par1)
{ {
@ -37,7 +39,13 @@ public class BlockRedLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:redleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:redleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:redleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:redleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenMaple; import tdwp_ftw.biomesop.worldgen.WorldGenMaple;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockRedSapling extends BlockSapling public class BlockRedSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"maple"}; public static final String[] WOOD_TYPES = new String[] {"maple"};
private Icon[] blockIcon = new Icon[1];
public BlockRedSapling(int par1) public BlockRedSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockRedSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:redsappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:redsapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -26,6 +27,7 @@ public class BlockRedwoodLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"redwood"}; public static final String[] LEAF_TYPES = new String[] {"redwood"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockRedwoodLeaves(int par1) public BlockRedwoodLeaves(int par1)
{ {
@ -38,7 +40,13 @@ public class BlockRedwoodLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:redwoodleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:redwoodleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:redwoodleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:redwoodleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
public int getBlockColor() public int getBlockColor()

View file

@ -9,6 +9,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -16,6 +17,7 @@ public class BlockRedwoodLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"redwood"}; public static final String[] woodType = new String[] {"redwood"};
private Icon[] blockIcon = new Icon[2];
public BlockRedwoodLog(int par1) public BlockRedwoodLog(int par1)
{ {
@ -27,7 +29,20 @@ public class BlockRedwoodLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:redwoodlog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:redwoodlog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenRedwoodTree2; import tdwp_ftw.biomesop.worldgen.WorldGenRedwoodTree2;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockRedwoodSapling extends BlockSapling public class BlockRedwoodSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"redwood"}; public static final String[] WOOD_TYPES = new String[] {"redwood"};
private Icon[] blockIcon = new Icon[1];
public BlockRedwoodSapling(int par1) public BlockRedwoodSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockRedwoodSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:redwoodsappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:redwoodsapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**
* Ticks the block if it's been scheduled * Ticks the block if it's been scheduled

View file

@ -8,11 +8,14 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
public class BlockSmolderingGrass extends Block public class BlockSmolderingGrass extends Block
{ {
private Icon[] blockIcon = new Icon[6];
public BlockSmolderingGrass(int par1) public BlockSmolderingGrass(int par1)
{ {
super(par1, Material.grass); super(par1, Material.grass);
@ -23,7 +26,17 @@ public class BlockSmolderingGrass extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:smolderinggrass1"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:smolderinggrass3");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:smolderinggrass1");
this.blockIcon[2] = par1IconRegister.registerIcon("BiomesOPlenty:smolderinggrass2");
this.blockIcon[3] = par1IconRegister.registerIcon("BiomesOPlenty:smolderinggrass2");
this.blockIcon[4] = par1IconRegister.registerIcon("BiomesOPlenty:smolderinggrass2");
this.blockIcon[5] = par1IconRegister.registerIcon("BiomesOPlenty:smolderinggrass2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[par1];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -25,6 +26,7 @@ public class BlockWhiteLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"white"}; public static final String[] LEAF_TYPES = new String[] {"white"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockWhiteLeaves(int par1) public BlockWhiteLeaves(int par1)
{ {
@ -37,7 +39,13 @@ public class BlockWhiteLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:whiteleaves2") : par1IconRegister.registerIcon("BiomesOPlenty:whiteleaves1")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:whiteleaves1");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:whiteleaves2");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenCherry2; import tdwp_ftw.biomesop.worldgen.WorldGenCherry2;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockWhiteSapling extends BlockSapling public class BlockWhiteSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"white"}; public static final String[] WOOD_TYPES = new String[] {"white"};
private Icon[] blockIcon = new Icon[1];
public BlockWhiteSapling(int par1) public BlockWhiteSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockWhiteSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:whitesappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:whitesapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -13,6 +13,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -26,6 +27,7 @@ public class BlockWillowLeaves extends BlockLeavesBase
private int baseIndexInPNG; private int baseIndexInPNG;
public static final String[] LEAF_TYPES = new String[] {"willow"}; public static final String[] LEAF_TYPES = new String[] {"willow"};
int[] adjacentTreeBlocks; int[] adjacentTreeBlocks;
private Icon[] blockIcon = new Icon[2];
public BlockWillowLeaves(int par1) public BlockWillowLeaves(int par1)
{ {
@ -38,7 +40,13 @@ public class BlockWillowLeaves extends BlockLeavesBase
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = (isOpaqueCube() ? par1IconRegister.registerIcon("BiomesOPlenty:willowleaves4") : par1IconRegister.registerIcon("BiomesOPlenty:willowleaves3")); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:willowleaves3");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:willowleaves4");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return blockIcon[(!isOpaqueCube() ? 0 : 1)];
} }
public int getBlockColor() public int getBlockColor()

View file

@ -9,6 +9,7 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess; import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
@ -16,6 +17,7 @@ public class BlockWillowLog extends Block
{ {
/** The type of tree this log came from. */ /** The type of tree this log came from. */
public static final String[] woodType = new String[] {"willow"}; public static final String[] woodType = new String[] {"willow"};
private Icon[] blockIcon = new Icon[2];
public BlockWillowLog(int par1) public BlockWillowLog(int par1)
{ {
@ -27,7 +29,20 @@ public class BlockWillowLog extends Block
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:willowlog"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:logTopBottum");
this.blockIcon[1] = par1IconRegister.registerIcon("BiomesOPlenty:willowlog");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if(par1 == 0 || par1 == 1)
{
return blockIcon[0];
}
else
{
return blockIcon[1];
}
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenWillow; import tdwp_ftw.biomesop.worldgen.WorldGenWillow;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockWillowSapling extends BlockSapling public class BlockWillowSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"willow"}; public static final String[] WOOD_TYPES = new String[] {"willow"};
private Icon[] blockIcon = new Icon[1];
public BlockWillowSapling(int par1) public BlockWillowSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockWillowSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:willowsappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:willowsapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -18,10 +18,12 @@ import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraft.world.gen.feature.WorldGenerator;
import tdwp_ftw.biomesop.worldgen.WorldGenAutumn; import tdwp_ftw.biomesop.worldgen.WorldGenAutumn;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Icon;
public class BlockYellowSapling extends BlockSapling public class BlockYellowSapling extends BlockSapling
{ {
public static final String[] WOOD_TYPES = new String[] {"yellow"}; public static final String[] WOOD_TYPES = new String[] {"yellow"};
private Icon[] blockIcon = new Icon[1];
public BlockYellowSapling(int par1) public BlockYellowSapling(int par1)
{ {
@ -34,7 +36,12 @@ public class BlockYellowSapling extends BlockSapling
@Override @Override
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:yellowsappling"); this.blockIcon[0] = par1IconRegister.registerIcon("BiomesOPlenty:yellowsapling");
}
public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)
{
return this.blockIcon[0];
} }
/** /**

View file

@ -58,7 +58,7 @@ import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry; import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid="BiomesOPlenty", name="Biomes O' Plenty", version="0.4.7") @Mod(modid="BiomesOPlenty", name="Biomes O' Plenty", version="0.4.8")
@NetworkMod(clientSideRequired=true, serverSideRequired=false) @NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class mod_BiomesOPlenty public class mod_BiomesOPlenty
{ {
@ -676,18 +676,18 @@ public class mod_BiomesOPlenty
bootsAmethyst = (new ArmorAmethyst(bootsAmethystID, EnumArmorMaterialAmethyst, proxy.addArmor("amethyst"), 3)).setCreativeTab(tabBiomesOPlenty).setUnlocalizedName("bootsAmethyst"); bootsAmethyst = (new ArmorAmethyst(bootsAmethystID, EnumArmorMaterialAmethyst, proxy.addArmor("amethyst"), 3)).setCreativeTab(tabBiomesOPlenty).setUnlocalizedName("bootsAmethyst");
// Achievement declaration // Achievement declaration
achFlower = (new Achievement(3047, "achFlower", 0, 0, Block.plantRed, (Achievement)null)).registerAchievement(); achFlower2 = (new Achievement(3057, "achFlower2", 0, 0, Block.plantRed, (Achievement)null)).registerAchievement();
achRedRock = (new Achievement(3048, "achRedRock", -1, 2, redRock, achFlower)).registerAchievement(); achRedRock2 = (new Achievement(3058, "achRedRock2", -1, 2, redRock, achFlower2)).registerAchievement();
achThorn = (new Achievement(3049, "achThorn", 2, 1, thorn, achFlower)).registerAchievement(); achThorn2 = (new Achievement(3059, "achThorn2", 2, 1, thorn, achFlower2)).registerAchievement();
achAsh = (new Achievement(3050, "achAsh", 1, 3, ashes, achFlower)).registerAchievement(); achAsh2 = (new Achievement(3060, "achAsh2", 1, 3, ashes, achFlower2)).registerAchievement();
achOrigin = (new Achievement(3051, "achOrigin", 0, 5, originGrass, achFlower)).setSpecial().registerAchievement(); achOrigin2 = (new Achievement(3061, "achOrigin2", 0, 5, originGrass, achFlower2)).setSpecial().registerAchievement();
achPromised = (new Achievement(3052, "achPromised", 0, -5, holyGrass, achFlower)).setSpecial().registerAchievement(); achPromised2 = (new Achievement(3062, "achPromised2", 0, -5, holyGrass, achFlower2)).setSpecial().registerAchievement();
achMud = (new Achievement(3053, "achMud", -2, -1, mudBall, achFlower)).registerAchievement(); achMud2 = (new Achievement(3063, "achMud2", -2, -1, mudBall, achFlower2)).registerAchievement();
achShroom = (new Achievement(3054, "achShroom", 1, -2, toadstool, achFlower)).registerAchievement(); achShroom2 = (new Achievement(3064, "achShroom2", 1, -2, toadstool, achFlower2)).registerAchievement();
achBarley = (new Achievement(3055, "achBarley", -2, 4, barleyItem, achFlower)).registerAchievement(); achBarley2 = (new Achievement(3065, "achBarley2", -2, 4, barleyItem, achFlower2)).registerAchievement();
achMoss = (new Achievement(3056, "achMoss", -1, -3, mossItem, achFlower)).registerAchievement(); achMoss2 = (new Achievement(3066, "achMoss2", -1, -3, mossItem, achFlower2)).registerAchievement();
pageBOP = new AchievementPage("Biomes O\' Plenty", achFlower, achRedRock, achThorn, achAsh, achOrigin, achPromised, achMud, achShroom, achBarley, achMoss); pageBOP = new AchievementPage("Biomes O\' Plenty", achFlower2, achRedRock2, achThorn2, achAsh2, achOrigin2, achPromised2, achMud2, achShroom2, achBarley2, achMoss2);
AchievementPage.registerAchievementPage(pageBOP); AchievementPage.registerAchievementPage(pageBOP);
// Add block names // Add block names
@ -1218,16 +1218,16 @@ public class mod_BiomesOPlenty
GameRegistry.addSmelting(tinyCactus.blockID, new ItemStack(Item.dyePowder, 1, 2), 0.2F); GameRegistry.addSmelting(tinyCactus.blockID, new ItemStack(Item.dyePowder, 1, 2), 0.2F);
// Add Achievement registration // Add Achievement registration
addAchievementDesc("achFlower", "Flower Child", "Pick some flowers!"); addAchievementDesc("achFlower2", "Flower Child", "Pick some flowers!");
addAchievementDesc("achRedRock", "Red Rocky Mountain High", "Dig out some red rocks."); addAchievementDesc("achRedRock2", "Red Rocky Mountain High", "Dig out some red rocks.");
addAchievementDesc("achThorn", "Rather Thorny...", "Don\'t get cut!"); addAchievementDesc("achThorn2", "Rather Thorny...", "Don\'t get cut!");
addAchievementDesc("achAsh", "Ash-ievement", "Get it? \'Cause it\'s ash."); addAchievementDesc("achAsh2", "Ash-ievement", "Get it? \'Cause it\'s ash.");
addAchievementDesc("achOrigin", "Alpha...", "Get some grass from the Origin Valley."); addAchievementDesc("achOrigin2", "Alpha...", "Get some grass from the Origin Valley.");
addAchievementDesc("achPromised", "...Omega", "Welcome to the Promised Land!"); addAchievementDesc("achPromised2", "...Omega", "Welcome to the Promised Land!");
addAchievementDesc("achMud", "Sticky Situation", "I just had these boots cleaned!"); addAchievementDesc("achMud2", "Sticky Situation", "I just had these boots cleaned!");
addAchievementDesc("achShroom", "Trippin\'", "Don\'t try this at home, kids!"); addAchievementDesc("achShroom2", "Trippin\'", "Don\'t try this at home, kids!");
addAchievementDesc("achBarley", "Fields Of Gold", "Upon the fields of barley."); addAchievementDesc("achBarley2", "Fields Of Gold", "Upon the fields of barley.");
addAchievementDesc("achMoss", "Mossman", "Mothman's long-lost cousin."); addAchievementDesc("achMoss2", "Mossman", "Mothman's long-lost cousin.");
LanguageRegistry.instance().addStringLocalization("generator.BIOMESOP", "en_US", "Biomes O\' Plenty"); LanguageRegistry.instance().addStringLocalization("generator.BIOMESOP", "en_US", "Biomes O\' Plenty");
@ -2140,16 +2140,16 @@ public class mod_BiomesOPlenty
public static Item bootsAmethyst; public static Item bootsAmethyst;
// Achievement declaration // Achievement declaration
public static Achievement achFlower; public static Achievement achFlower2;
public static Achievement achRedRock; public static Achievement achRedRock2;
public static Achievement achThorn; public static Achievement achThorn2;
public static Achievement achAsh; public static Achievement achAsh2;
public static Achievement achOrigin; public static Achievement achOrigin2;
public static Achievement achPromised; public static Achievement achPromised2;
public static Achievement achMud; public static Achievement achMud2;
public static Achievement achShroom; public static Achievement achShroom2;
public static Achievement achBarley; public static Achievement achBarley2;
public static Achievement achMoss; public static Achievement achMoss2;
// Biome declaration // Biome declaration
public static BiomeGenBase alps; public static BiomeGenBase alps;
@ -2807,43 +2807,43 @@ public class mod_BiomesOPlenty
{ {
if (item.itemID == glowFlower.blockID || item.itemID == orangeFlower.blockID || item.itemID == blueFlower.blockID || item.itemID == purpleFlower.blockID || item.itemID == pinkFlower.blockID || item.itemID == whiteFlower.blockID || item.itemID == tinyFlower.blockID || item.itemID == deathbloom.blockID || item.itemID == hydrangea.blockID || item.itemID == violet.blockID || item.itemID == Block.plantRed.blockID || item.itemID == Block.plantYellow.blockID) if (item.itemID == glowFlower.blockID || item.itemID == orangeFlower.blockID || item.itemID == blueFlower.blockID || item.itemID == purpleFlower.blockID || item.itemID == pinkFlower.blockID || item.itemID == whiteFlower.blockID || item.itemID == tinyFlower.blockID || item.itemID == deathbloom.blockID || item.itemID == hydrangea.blockID || item.itemID == violet.blockID || item.itemID == Block.plantRed.blockID || item.itemID == Block.plantYellow.blockID)
{ {
player.addStat(achFlower, 1); player.addStat(achFlower2, 1);
} }
if (item.itemID == redRockCobble.blockID) if (item.itemID == redRockCobble.blockID)
{ {
player.addStat(achRedRock, 1); player.addStat(achRedRock2, 1);
} }
if (item.itemID == thorn.blockID) if (item.itemID == thorn.blockID)
{ {
player.addStat(achThorn, 1); player.addStat(achThorn2, 1);
} }
if (item.itemID == ashes.itemID) if (item.itemID == ashes.itemID)
{ {
player.addStat(achAsh, 1); player.addStat(achAsh2, 1);
} }
if (item.itemID == originGrass.blockID) if (item.itemID == originGrass.blockID)
{ {
player.addStat(achOrigin, 1); player.addStat(achOrigin2, 1);
} }
if (item.itemID == holyGrass.blockID || item.itemID == holyStone.blockID) if (item.itemID == holyGrass.blockID || item.itemID == holyStone.blockID)
{ {
player.addStat(achPromised, 1); player.addStat(achPromised2, 1);
} }
if (item.itemID == mudBall.itemID) if (item.itemID == mudBall.itemID)
{ {
player.addStat(achMud, 1); player.addStat(achMud2, 1);
} }
if (item.itemID == toadstool.blockID) if (item.itemID == toadstool.blockID)
{ {
player.addStat(achShroom, 1); player.addStat(achShroom2, 1);
} }
if (item.itemID == barleyItem.itemID) if (item.itemID == barleyItem.itemID)
{ {
player.addStat(achBarley, 1); player.addStat(achBarley2, 1);
} }
if (item.itemID == mossItem.itemID) if (item.itemID == mossItem.itemID)
{ {
player.addStat(achMoss, 1); player.addStat(achMoss2, 1);
} }
} }