public class FarmableDoubleCrop extends FarmableBase
germling, matureState, plantedState, replant| Constructor and Description |
|---|
FarmableDoubleCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.state.IBlockState plantedState,
net.minecraft.block.state.IBlockState matureState,
net.minecraft.block.state.IBlockState topMatureState,
boolean replant) |
| Modifier and Type | Method and Description |
|---|---|
ICrop |
getCropAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState) |
boolean |
isSaplingAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState) |
addInformation, isGermling, isWindfall, plantSaplingAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSaplingAtpublic FarmableDoubleCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.state.IBlockState plantedState,
net.minecraft.block.state.IBlockState matureState,
net.minecraft.block.state.IBlockState topMatureState,
boolean replant)
public boolean isSaplingAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState)
isSaplingAt in interface IFarmableisSaplingAt in class FarmableBasepublic ICrop getCropAt(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState blockState)
getCropAt in interface IFarmablegetCropAt in class FarmableBaseICrop if the block at the given location is a harvestable and mature crop, null otherwise.