Carrot is not fruit (#27)

* Carrot is not fruit

* updateBuildScript & spotlessApply
This commit is contained in:
miozune authored and GitHub committed 2022-08-25 14:10:35 +02:00
1 parent 6973dbc80d
commit c5c3aee2fb
1345 files changed
+92079 -90006

No files matched your search

@@ -2,27 +2,26 @@ package forestry.farming.logic;
import forestry.core.utils.vect.Vect;
import forestry.plugins.compat.PluginIC2;
import java.util.Collection;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import java.util.Collection;
public class CropBasicIC2Crop extends Crop {
private final TileEntity tileEntity;
private final TileEntity tileEntity;
public CropBasicIC2Crop(World world, TileEntity tileEntity, Vect position) {
super(world, position);
this.tileEntity = tileEntity;
}
public CropBasicIC2Crop(World world, TileEntity tileEntity, Vect position) {
super(world, position);
this.tileEntity = tileEntity;
}
@Override
protected boolean isCrop(Vect pos) {
return PluginIC2.instance.canHarvestCrop(this.tileEntity);
}
@Override
protected boolean isCrop(Vect pos) {
return PluginIC2.instance.canHarvestCrop(this.tileEntity);
}
@Override
protected Collection<ItemStack> harvestBlock(Vect pos) {
return PluginIC2.instance.getCropDrops(this.tileEntity);
}
@Override
protected Collection<ItemStack> harvestBlock(Vect pos) {
return PluginIC2.instance.getCropDrops(this.tileEntity);
}
}