public class CropHandlerReeds extends java.lang.Object implements ICropHandler
| Constructor and Description |
|---|
CropHandlerReeds() |
| 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.
|
public boolean isSeed(net.minecraft.item.ItemStack stack)
ICropHandlerisSeed in interface ICropHandlerpublic boolean canSustainPlant(net.minecraft.world.World world,
net.minecraft.item.ItemStack seed,
int x,
int y,
int z)
ICropHandlercanSustainPlant in interface ICropHandlerpublic boolean isMature(net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.block.Block block,
int meta,
int x,
int y,
int z)
ICropHandlerisMature in interface ICropHandlerpublic boolean harvestCrop(net.minecraft.world.World world,
int x,
int y,
int z,
java.util.List<net.minecraft.item.ItemStack> drops)
ICropHandlerharvestCrop in interface ICropHandlerdrops - a list to return the harvest's drops.