aboutsummaryrefslogtreecommitdiff
path: root/src/Java/powercrystals/minefactoryreloaded/farmables/harvestables/HarvestableTreeLeaves.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/powercrystals/minefactoryreloaded/farmables/harvestables/HarvestableTreeLeaves.java')
-rw-r--r--src/Java/powercrystals/minefactoryreloaded/farmables/harvestables/HarvestableTreeLeaves.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/Java/powercrystals/minefactoryreloaded/farmables/harvestables/HarvestableTreeLeaves.java b/src/Java/powercrystals/minefactoryreloaded/farmables/harvestables/HarvestableTreeLeaves.java
deleted file mode 100644
index eaa23bd847..0000000000
--- a/src/Java/powercrystals/minefactoryreloaded/farmables/harvestables/HarvestableTreeLeaves.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package powercrystals.minefactoryreloaded.farmables.harvestables;
-
-import net.minecraft.block.Block;
-import net.minecraft.world.World;
-import powercrystals.minefactoryreloaded.api.HarvestType;
-
-public class HarvestableTreeLeaves extends HarvestableShearable
-{
- public HarvestableTreeLeaves(Block block)
- {
- super(block, HarvestType.TreeLeaf);
- }
-
- @Override
- public void postHarvest(World world, int x, int y, int z)
- {
- Block id = getPlant();
-
- notifyBlock(world, x, y - 1, z, id);
- notifyBlock(world, x - 1, y, z, id);
- notifyBlock(world, x + 1, y, z, id);
- notifyBlock(world, x, y, z - 1, id);
- notifyBlock(world, x, y, z + 1, id);
- notifyBlock(world, x, y + 1, z, id);
- }
-
- protected void notifyBlock(World world, int x, int y, int z, Block id)
- {
- Block block = world.getBlock(x, y, z);
- if (!block.isLeaves(world, x, y, z))
- world.notifyBlockOfNeighborChange(x, y, z, id);
- }
-}