public interface ICropHandler
Modifier and Type | Method and Description |
---|---|
boolean |
canSustainPlant(net.minecraft.world.World world,
net.minecraft.item.ItemStack seed,
net.minecraft.util.math.BlockPos pos)
Check if the item can be planted.
|
boolean |
harvestCrop(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops)
Harvest the crop.
|
boolean |
isMature(net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.BlockPos pos)
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 |
plantCrop(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack seed,
net.minecraft.util.math.BlockPos pos)
Plant the item in the block.
|
boolean isSeed(net.minecraft.item.ItemStack stack)
stack
- boolean canSustainPlant(net.minecraft.world.World world, net.minecraft.item.ItemStack seed, net.minecraft.util.math.BlockPos pos)
world
- seed
- pos
- boolean plantCrop(net.minecraft.world.World world, net.minecraft.entity.player.EntityPlayer player, net.minecraft.item.ItemStack seed, net.minecraft.util.math.BlockPos pos)
world
- player
- seed
- pos
- boolean isMature(net.minecraft.world.IBlockAccess blockAccess, net.minecraft.block.state.IBlockState state, net.minecraft.util.math.BlockPos pos)
blockAccess
- state
- pos
- boolean harvestCrop(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops)
world
- pos
- drops
- a list to return the harvest's drops.