public interface IFarmable
| Modifier and Type | Method and Description |
|---|---|
default void |
addInformation(IFarmableInfo info) |
ICrop |
getCropAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState) |
boolean |
isGermling(net.minecraft.item.ItemStack itemstack) |
default boolean |
isSaplingAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Deprecated.
Since Forestry 5.8. Use the version below. TODO Remove this method in 1.13
|
default boolean |
isSaplingAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState) |
default boolean |
isWindfall(net.minecraft.item.ItemStack itemstack) |
boolean |
plantSaplingAt(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack germling,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Plants a sapling by manipulating the world.
|
@Deprecated
default boolean isSaplingAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
default boolean isSaplingAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState)
@Nullable ICrop getCropAt(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState blockState)
ICrop if the block at the given location is a harvestable and mature crop, null otherwise.boolean isGermling(net.minecraft.item.ItemStack itemstack)
default void addInformation(IFarmableInfo info)
default boolean isWindfall(net.minecraft.item.ItemStack itemstack)
boolean plantSaplingAt(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack germling,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
IFarmLogic should have verified the given location as valid. Called by the IFarmHousing
which handles resources.