Added peaches
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Before Width: | Height: | Size: 325 B After Width: | Height: | Size: 329 B |
After Width: | Height: | Size: 333 B |
After Width: | Height: | Size: 312 B |
BIN
src/main/resources/assets/biomesoplenty/textures/items/peach.png
Normal file
After Width: | Height: | Size: 370 B |
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 351 B |