Added peaches

This commit is contained in:
Matt Caughey 2015-03-26 21:25:54 -04:00
parent 4215cc8e3d
commit 1543214dcd
9 changed files with 20 additions and 12 deletions

View file

@ -35,7 +35,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockBOPFruit extends BOPBlockWorldDecor
{
private static final String[] fruit = new String[] {"apple_block", "persimmon_block"};
private static final String[] fruit = new String[] {"apple_block", "persimmon_block", "peach_block"};
private IIcon[] textures;
public BlockBOPFruit()
@ -83,7 +83,10 @@ public class BlockBOPFruit extends BOPBlockWorldDecor
//TODO: getSubBlocks()
public void getSubBlocks(Item block, CreativeTabs creativeTabs, List list)
{
for (int i = 0; i < fruit.length; ++i)
{
list.add(new ItemStack(block, 1, i));
}
}
@Override
@ -93,12 +96,6 @@ public class BlockBOPFruit extends BOPBlockWorldDecor
switch (metadata)
{
case 0: // Apple
return block == BOPCBlocks.appleLeaves;
case 1: // Dune Grass
return block == BOPCBlocks.persimmonLeaves;
default:
return block == Blocks.leaves || block == Blocks.leaves2 || block == BOPCBlocks.leaves1 || block == BOPCBlocks.leaves2 || block == BOPCBlocks.leaves3 || block == BOPCBlocks.leaves4;
}
@ -124,6 +121,9 @@ public class BlockBOPFruit extends BOPBlockWorldDecor
case 1:
return new ItemStack(BOPCItems.food, 1, 8);
case 2:
return new ItemStack(BOPCItems.food, 1, 3);
}
return new ItemStack(this, 1, meta);
@ -148,6 +148,10 @@ public class BlockBOPFruit extends BOPBlockWorldDecor
{
return BOPCItems.food;
}
else if (metadata == 2)
{
return BOPCItems.food;
}
else
{
return null;
@ -161,6 +165,10 @@ public class BlockBOPFruit extends BOPBlockWorldDecor
{
return 8;
}
else if (meta == 2)
{
return 3;
}
else
{
return 0;

View file

@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class ItemBlockFruit extends ItemBlock
{
private static final String[] plants = new String[] {"apple_block", "persimmon_block"};
private static final String[] plants = new String[] {"apple_block", "persimmon_block", "peach_block"};
@SideOnly(Side.CLIENT)
private IIcon[] textures;

View file

@ -21,8 +21,8 @@ import biomesoplenty.api.content.BOPCBlocks;
public class ItemBOPFood extends ItemFood
{
private static final String[] foodTypes = new String[] {"berries", "shroompowder", "wildcarrots", "sunflowerseeds", "saladfruit", "saladveggie", "saladshroom", "earth", "persimmon", "filledhoneycomb", "ambrosia", "turnip"};
private static final int[] foodHunger = new int[] {1, 1, 3, 2, 6, 6, 6, 0, 5, 3, 6, 3};
private static final String[] foodTypes = new String[] {"berries", "shroompowder", "wildcarrots", "peach", "saladfruit", "saladveggie", "saladshroom", "earth", "persimmon", "filledhoneycomb", "ambrosia", "turnip"};
private static final int[] foodHunger = new int[] {1, 1, 3, 5, 6, 6, 6, 0, 5, 3, 6, 3};
private static final float[] foodSaturation = new float[] {0.1F, 0.1F, 0.5F, 0.5F, 0.6F, 0.6F, 0.6F, 0.0F, 0.2F, 0.4F, 0.8F, 0.4F};
private IIcon[] textures;

View file

@ -313,7 +313,7 @@ tile.mahoganyStairs.name=Mahogany Wood Stairs
item.food.berries.name=Berry
item.food.shroompowder.name=Shroom Powder
item.food.wildcarrots.name=Wild Carrots
item.food.sunflowerseeds.name=Sunflower Seeds
item.food.peach.name=Peach
item.food.saladfruit.name=Fruit Salad
item.food.saladveggie.name=Veggie Salad
item.food.saladshroom.name=Shroom Salad

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 B

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 B

After

Width:  |  Height:  |  Size: 351 B