From 59423de96bb8ff9619f0e6d802ad3947f1f3851f Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 5 May 2013 09:50:16 +1000 Subject: [PATCH 1/6] Updated Forestry API --- src/minecraft/forestry/api/apiculture/IBeeModifier.java | 4 ++-- src/minecraft/forestry/api/recipes/IBottlerManager.java | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/minecraft/forestry/api/apiculture/IBeeModifier.java b/src/minecraft/forestry/api/apiculture/IBeeModifier.java index cce63accb..250e24e3c 100644 --- a/src/minecraft/forestry/api/apiculture/IBeeModifier.java +++ b/src/minecraft/forestry/api/apiculture/IBeeModifier.java @@ -26,14 +26,14 @@ public interface IBeeModifier { /** * @param genome * @param mate - * @return Fload modifying the production speed of queens. + * @return Float modifying the production speed of queens. */ float getProductionModifier(IBeeGenome genome, float currentModifier); /** * @param genome * @param mate - * @return Fload modifying the flowering of queens. + * @return Float modifying the flowering of queens. */ float getFloweringModifier(IBeeGenome genome, float currentModifier); diff --git a/src/minecraft/forestry/api/recipes/IBottlerManager.java b/src/minecraft/forestry/api/recipes/IBottlerManager.java index 2bfc43a70..a931663ba 100644 --- a/src/minecraft/forestry/api/recipes/IBottlerManager.java +++ b/src/minecraft/forestry/api/recipes/IBottlerManager.java @@ -17,7 +17,8 @@ import net.minecraftforge.liquids.LiquidStack; */ public interface IBottlerManager extends ICraftingProvider { /** - * Add a recipe to the bottler + * Add a recipe to the bottler. + * The bottler will populate its recipe list dynamically from the LiquidContainerRegistry. Recipes added explicitely will take precedence. * * @param cyclesPerUnit * Amount of work cycles required to run through the conversion once. @@ -30,5 +31,6 @@ public interface IBottlerManager extends ICraftingProvider { * @param bottled * ItemStack representing the finished product */ + @Deprecated public void addRecipe(int cyclesPerUnit, LiquidStack input, ItemStack can, ItemStack bottled); } From c5251b6274b76b241522b781059070528ce98db6 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 5 May 2013 09:50:42 +1000 Subject: [PATCH 2/6] Fire now burns infinitely on ash --- src/minecraft/biomesoplenty/blocks/BlockAsh.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/minecraft/biomesoplenty/blocks/BlockAsh.java b/src/minecraft/biomesoplenty/blocks/BlockAsh.java index a33bbedbb..f6b1d71c0 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockAsh.java +++ b/src/minecraft/biomesoplenty/blocks/BlockAsh.java @@ -1,5 +1,7 @@ package biomesoplenty.blocks; +import static net.minecraftforge.common.ForgeDirection.UP; + import java.util.Random; import net.minecraft.block.Block; @@ -8,7 +10,10 @@ import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.Entity; import net.minecraft.util.AxisAlignedBB; import net.minecraft.world.World; +import net.minecraft.world.WorldProviderEnd; +import net.minecraftforge.common.ForgeDirection; import biomesoplenty.BiomesOPlenty; +import biomesoplenty.api.Blocks; import biomesoplenty.api.Items; public class BlockAsh extends Block @@ -47,6 +52,14 @@ public class BlockAsh extends Block par1World.spawnParticle("smoke", (double)((float)par2 + par5Random.nextFloat()), (double)((float)par3 + 1.1F), (double)((float)par4 + par5Random.nextFloat()), 0.0D, 0.0D, 0.0D); } } + + @Override + public boolean isFireSource(World world, int x, int y, int z, int metadata, ForgeDirection side) + { + if (blockID == Blocks.ash.get().blockID && side == UP) + return true; + return false; + } /** * Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity From 59717f6170c44820e7545995a37596c1d54fa789 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 5 May 2013 09:51:19 +1000 Subject: [PATCH 3/6] Fixed willow colouring --- src/minecraft/biomesoplenty/blocks/BlockWillow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/minecraft/biomesoplenty/blocks/BlockWillow.java b/src/minecraft/biomesoplenty/blocks/BlockWillow.java index d0e4253c6..a72b0b2a2 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockWillow.java +++ b/src/minecraft/biomesoplenty/blocks/BlockWillow.java @@ -233,9 +233,10 @@ public class BlockWillow extends Block implements IShearable /** * Returns the color this block should be rendered. Used by leaves. */ + @Override public int getRenderColor(int par1) { - return ColorizerFoliage.getFoliageColorBirch(); + return ColorizerFoliage.getFoliageColorBasic(); } /** From 09f287dada2adb1bcdb09d013a2f9c2910f84879 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 5 May 2013 09:52:06 +1000 Subject: [PATCH 4/6] Fixed High Cattail pickblock --- src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java b/src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java index 88ea43006..9ba6ce7df 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java +++ b/src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java @@ -191,8 +191,8 @@ public class BlockBOPPlant extends BlockFlower implements IShearable public int getDamageValue(World world, int x, int y, int z) { int meta = world.getBlockMetadata(x, y, z); - if (meta == CATTAILTOP) - meta = CATTAILBOTTOM; + if (meta == CATTAILTOP || meta == CATTAILBOTTOM) + meta = 7; return meta; } From 705105c3e690d9cf8a1aa0c48cd7c2a1fd05ab24 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 5 May 2013 09:52:26 +1000 Subject: [PATCH 5/6] Fixed cattail dupe drops on sheared --- src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java b/src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java index 9ba6ce7df..fb89d8eb6 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java +++ b/src/minecraft/biomesoplenty/blocks/BlockBOPPlant.java @@ -243,7 +243,10 @@ public class BlockBOPPlant extends BlockFlower implements IShearable @Override public boolean isShearable(ItemStack item, World world, int x, int y, int z) { - return true; + if (world.getBlockMetadata(x, y, z) == 7 || world.getBlockMetadata(x, y, z) == 8 || world.getBlockMetadata(x, y, z) == 9) + return false; + else + return true; } @Override @@ -251,9 +254,7 @@ public class BlockBOPPlant extends BlockFlower implements IShearable { ArrayList ret = new ArrayList(); - if (world.getBlockMetadata(x, y, z) != 8 && world.getBlockMetadata(x, y, z) != 9) - ret.add(new ItemStack(this, 1, world.getBlockMetadata(x, y, z))); - + ret.add(new ItemStack(this, 1, world.getBlockMetadata(x, y, z))); return ret; } From 0057913fdd01d23ccc4b5b85dd18eb63fcc56282 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 5 May 2013 09:56:28 +1000 Subject: [PATCH 6/6] Adjusted humidity of the Heathland and Fen --- .../biomesoplenty/integration/ForestryIntegration.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/minecraft/biomesoplenty/integration/ForestryIntegration.java b/src/minecraft/biomesoplenty/integration/ForestryIntegration.java index 56bca933c..6109bbd88 100644 --- a/src/minecraft/biomesoplenty/integration/ForestryIntegration.java +++ b/src/minecraft/biomesoplenty/integration/ForestryIntegration.java @@ -97,6 +97,7 @@ public class ForestryIntegration EnumTemperature.normalBiomeIds.add(BOPConfiguration.quagmireID); EnumTemperature.normalBiomeIds.add(BOPConfiguration.swampwoodsID); EnumTemperature.normalBiomeIds.add(BOPConfiguration.wetlandID); + EnumTemperature.normalBiomeIds.add(BOPConfiguration.fenID); EnumHumidity.dampBiomeIds.add(BOPConfiguration.bayouID); EnumHumidity.dampBiomeIds.add(BOPConfiguration.bogID); @@ -111,6 +112,7 @@ public class ForestryIntegration EnumHumidity.dampBiomeIds.add(BOPConfiguration.quagmireID); EnumHumidity.dampBiomeIds.add(BOPConfiguration.swampwoodsID); EnumHumidity.dampBiomeIds.add(BOPConfiguration.wetlandID); + EnumHumidity.dampBiomeIds.add(BOPConfiguration.fenID); //Normal EnumTemperature.normalBiomeIds.add(BOPConfiguration.birchForestID); @@ -138,6 +140,7 @@ public class ForestryIntegration EnumTemperature.normalBiomeIds.add(BOPConfiguration.shoreID); EnumTemperature.normalBiomeIds.add(BOPConfiguration.spruceWoodsID); EnumTemperature.normalBiomeIds.add(BOPConfiguration.temperateRainforestID); + EnumTemperature.normalBiomeIds.add(BOPConfiguration.heathlandID); EnumHumidity.normalBiomeIds.add(BOPConfiguration.birchForestID); EnumHumidity.normalBiomeIds.add(BOPConfiguration.borealForestID); @@ -164,11 +167,10 @@ public class ForestryIntegration EnumHumidity.normalBiomeIds.add(BOPConfiguration.shoreID); EnumHumidity.normalBiomeIds.add(BOPConfiguration.spruceWoodsID); EnumHumidity.normalBiomeIds.add(BOPConfiguration.temperateRainforestID); + EnumHumidity.normalBiomeIds.add(BOPConfiguration.heathlandID); //Normal - Arid EnumTemperature.normalBiomeIds.add(BOPConfiguration.cragID); - EnumTemperature.normalBiomeIds.add(BOPConfiguration.fenID); - EnumTemperature.normalBiomeIds.add(BOPConfiguration.heathlandID); EnumTemperature.normalBiomeIds.add(BOPConfiguration.jadeCliffsID); EnumTemperature.normalBiomeIds.add(BOPConfiguration.mountainID); EnumTemperature.normalBiomeIds.add(BOPConfiguration.outbackID); @@ -176,8 +178,6 @@ public class ForestryIntegration EnumTemperature.normalBiomeIds.add(BOPConfiguration.thicketID); EnumHumidity.aridBiomeIds.add(BOPConfiguration.cragID); - EnumHumidity.aridBiomeIds.add(BOPConfiguration.fenID); - EnumHumidity.aridBiomeIds.add(BOPConfiguration.heathlandID); EnumHumidity.aridBiomeIds.add(BOPConfiguration.jadeCliffsID); EnumHumidity.aridBiomeIds.add(BOPConfiguration.mountainID); EnumHumidity.aridBiomeIds.add(BOPConfiguration.outbackID);