Skip to content

Commit

Permalink
move ICrop over from natura
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Mar 12, 2015
1 parent f0bfe7c commit ff9c829
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/mantle/blocks/iface/ICrop.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package mantle.blocks.iface;


import java.util.Collections;
import java.util.List;

import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
import net.minecraft.world.IBlockAccess;

public interface ICrop
{
public enum HarvestType
{
BREAK, USE, MACHINE
}

public static final List<ItemStack> NO_YIELD = Collections.emptyList();

/**
*
* @param world
* @param pos
* @param type
* @return A list of items harvested. If no items are returned, NO_YIELD should be passed.
*/
public List<ItemStack> harvestCrop (IBlockAccess world, BlockPos pos, HarvestType type);

public boolean isFullyGrown (IBlockAccess world, BlockPos pos);

public boolean hasYield (IBlockAccess world, BlockPos pos);

public void growthTick (IBlockAccess world, BlockPos pos);
}

0 comments on commit ff9c829

Please sign in to comment.