public interface ICropHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSustainPlant(net.minecraft.world.World world,
net.minecraft.item.ItemStack seed,
int x,
int y,
int z)
Check if the item can be planted.
|
boolean |
harvestCrop(net.minecraft.world.World world,
int x,
int y,
int z,
java.util.List<net.minecraft.item.ItemStack> drops)
Harvest the crop.
|
boolean |
isMature(net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.block.Block block,
int meta,
int x,
int y,
int z)
Check if a crop is mature and can be harvested.
|
boolean |
isSeed(net.minecraft.item.ItemStack stack)
Check if an item is a seed.
|
boolean isSeed(net.minecraft.item.ItemStack stack)
stack - boolean canSustainPlant(net.minecraft.world.World world,
net.minecraft.item.ItemStack seed,
int x,
int y,
int z)
world - seed - x - y - z - boolean isMature(net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.block.Block block,
int meta,
int x,
int y,
int z)
blockAccess - block - meta - x - y - z - boolean harvestCrop(net.minecraft.world.World world,
int x,
int y,
int z,
java.util.List<net.minecraft.item.ItemStack> drops)
world - x - y - z - drops - a list to return the harvest's drops.