mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
33 lines
1.2 KiB
Java
33 lines
1.2 KiB
Java
/*******************************************************************************
|
|
* Copyright (c) 2011-2014 SirSengir.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the GNU Lesser Public License v3
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
*
|
|
* Various Contributors including, but not limited to:
|
|
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
|
|
******************************************************************************/
|
|
package forestry.farming.logic;
|
|
|
|
import net.minecraft.block.state.IBlockState;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.world.World;
|
|
|
|
import forestry.api.farming.ICrop;
|
|
|
|
public class FarmableBasicAgricraft extends FarmableBase {
|
|
public FarmableBasicAgricraft(ItemStack germling, IBlockState plantedState, IBlockState matureState, boolean replant) {
|
|
super(germling, plantedState, matureState, replant);
|
|
}
|
|
|
|
@Override
|
|
public ICrop getCropAt(World world, BlockPos pos, IBlockState blockState) {
|
|
if (blockState != matureState) {
|
|
return null;
|
|
}
|
|
return new CropBasicAgriCraft(world, blockState, pos);
|
|
}
|
|
}
|