public class FarmableVanillaMushroom extends FarmableBase
germling, matureState, plantedState, replant| Constructor and Description |
|---|
FarmableVanillaMushroom(net.minecraft.item.ItemStack mushroom,
net.minecraft.block.state.IBlockState plantedMushroom,
net.minecraft.block.Block hugeMushroomBlock) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(IFarmableInfo info) |
ICrop |
getCropAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState) |
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.
|
isGermling, isSaplingAt, isWindfallclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSaplingAtpublic FarmableVanillaMushroom(net.minecraft.item.ItemStack mushroom,
net.minecraft.block.state.IBlockState plantedMushroom,
net.minecraft.block.Block hugeMushroomBlock)
public 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.public boolean plantSaplingAt(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack germling,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
IFarmableIFarmLogic should have verified the given location as valid. Called by the IFarmHousing
which handles resources.plantSaplingAt in interface IFarmableplantSaplingAt in class FarmableBasepublic void addInformation(IFarmableInfo info)
addInformation in interface IFarmableaddInformation in class FarmableBase