aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/forestry/trees/ForestrySapling.java
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2017-02-02 10:42:04 +1000
committerdraknyte1 <draknyte1@hotmail.com>2017-02-02 10:42:04 +1000
commit2a688e006c07c1240966c2829906a1752031153c (patch)
tree67468ecacaa6e77ec2581532e2fe96fcced6b39c /src/Java/gtPlusPlus/xmod/forestry/trees/ForestrySapling.java
parent233ee8c9a0a1c72953cfa6f7f5a439f2859daaf1 (diff)
downloadGT5-Unofficial-2a688e006c07c1240966c2829906a1752031153c.tar.gz
GT5-Unofficial-2a688e006c07c1240966c2829906a1752031153c.tar.bz2
GT5-Unofficial-2a688e006c07c1240966c2829906a1752031153c.zip
+ Added a check for BuildCraft.
% Changed handling of Wrench interfaces for the Workbench. - Removed classes I borrowed from MFR. (useless) - Removed Psychedelicraft support. (useless)
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/forestry/trees/ForestrySapling.java')
-rw-r--r--src/Java/gtPlusPlus/xmod/forestry/trees/ForestrySapling.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/Java/gtPlusPlus/xmod/forestry/trees/ForestrySapling.java b/src/Java/gtPlusPlus/xmod/forestry/trees/ForestrySapling.java
deleted file mode 100644
index 7c81ea0928..0000000000
--- a/src/Java/gtPlusPlus/xmod/forestry/trees/ForestrySapling.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package gtPlusPlus.xmod.forestry.trees;
-
-import java.util.Random;
-
-import net.minecraft.block.Block;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import powercrystals.minefactoryreloaded.api.ReplacementBlock;
-import powercrystals.minefactoryreloaded.farmables.plantables.PlantableStandard;
-import forestry.api.arboriculture.ITreeRoot;
-import forestry.api.genetics.AlleleManager;
-
-public class ForestrySapling extends PlantableStandard
-{
- private ITreeRoot root;
-
- public ForestrySapling(Item item, Block block)
- {
- super(item, block, WILDCARD, null);
- root = (ITreeRoot)AlleleManager.alleleRegistry.getSpeciesRoot("rootTrees");
- _plantedBlock = new ReplacementBlock((Block)null) {
- @Override
- public boolean replaceBlock(World world, int x, int y, int z, ItemStack stack) {
- return root.plantSapling(world, root.getMember(stack), null, x, y, z);
- }
- };
- }
-
- public Block getPlant()
- {
- return _block;
- }
-
- @Override
- public boolean canBePlantedHere(World world, int x, int y, int z, ItemStack stack)
- {
- if (!world.isAirBlock(x, y, z))
- return false;
-
- return root.getMember(stack).canStay(world, x, y, z);
- }
-
- public boolean canFertilize(World world, int x, int y, int z)
- {
- return true;
- }
-
- public boolean fertilize(World world, Random rand, int x, int y, int z)
- {
- Block block = world.getBlock(x, y, z);
- root.getTree(world, x, y, z).getTreeGenerator(world, x, y, z, true).generate(world, rand, x, y, z);
- return world.getBlock(x, y, z) != block;
- }
-}